407668c306
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2276 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: cbff36e6bd206b0180816184b31d3a609616f669 Former-commit-id: cc1d132029d92e672f8520d2555f8dcdc5bbb92e
12 lines
769 B
CMake
12 lines
769 B
CMake
#This file can be distributed with packages such as cars, robots, tracks
|
|
#It tries to locate a installed torcs-ng version and include the distributed macro's
|
|
|
|
SET(TORCSNG_PREFIX CACHE PATH "Prefix where Speed Dreams is installed")
|
|
SET(TORCSNG_DATADIR CACHE PATH "Place where the data is installed")
|
|
FIND_FILE(TORCSNG_CMAKE_MACROS speed-dreams.cmake PATHS ${TORCSNG_PREFIX} ${TORCSNG_PREFIX}/${TORCSNG_DATADIR} ${TORCSNG_DATADIR} /usr /usr/local PATH_SUFFIXES cmake share/cmake share/games/torcs/cmake DOC "Place where Speed Dreams is installed")
|
|
IF(NOT TORCSNG_CMAKE_MACROS)
|
|
MESSAGE(FATAL_ERROR "Didn't find Speed Dreams. Please specify the location with the TORCSNG_PREFIX or TORCSNG_DATADIR path.")
|
|
ENDIF(NOT TORCSNG_CMAKE_MACROS)
|
|
|
|
INCLUDE(${TORCSNG_CMAKE_MACROS})
|
|
|