speed-dreams-code/cmake/FindSpeedDreams.cmake
xavi92 e06a519365 Remove trailing newlines
The following shell script was used:

while read f
do
	sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' -- "$f"
done <<EOF
$(svn ls -R | grep \
	-e '.\cpp$' \
	-e '\.cmake$' \
	-e '\.txt$' \
	-e '\.cppcheck$' \
	-e '\.frag$' \
	-e '\.h$' \
	-e '\.hpp$' \
	-e '\.vert$' \
	-e '\.xml$' \
	-e '\.java$' \
	-e '\.c$')
EOF


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9509 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: aac7ab5702079417cb16ca2fa291be07033ea549
Former-commit-id: f0286e4119f166d7b78f9d13ff2ea04ffaa95c67
2024-07-30 22:17:48 +00:00

11 lines
710 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})