speed-dreams-code/cmake/FindSpeedDreams.cmake
pouillot 3c176f95b3 Fixed #136 (rename *TORCS* build system variables to *SD*)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@2759 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 0bcda7b4068e1207e769dc45e4647bd6d0accaa4
Former-commit-id: 9651d5c86740b4ef18f0443ba87e92b772602168
2010-09-19 13:25:52 +00:00

12 lines
711 B
CMake

#This file can be distributed with packages such as cars, robots, tracks
#It tries to locate a installed SD version and includes the distributed macro's
SET(SD_PREFIX CACHE PATH "Prefix where Speed Dreams is installed")
SET(SD_DATADIR CACHE PATH "Place where the data is installed")
FIND_FILE(SD_CMAKE_MACROS speed-dreams.cmake PATHS ${SD_PREFIX} ${SD_PREFIX}/${SD_DATADIR} ${SD_DATADIR} /usr /usr/local PATH_SUFFIXES cmake share/cmake share/games/speed-dreams/cmake DOC "Place where Speed Dreams is installed")
IF(NOT SD_CMAKE_MACROS)
MESSAGE(FATAL_ERROR "Didn't find Speed Dreams. Please specify the location with the SD_PREFIX or SD_DATADIR path.")
ENDIF(NOT SD_CMAKE_MACROS)
INCLUDE(${SD_CMAKE_MACROS})