define SUPERTUXKART_DATADIR in CMake builds

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10211 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-11-14 23:27:31 +00:00
parent 51ac2fd051
commit bab3705925

View File

@ -681,6 +681,9 @@ if (APPLE)
add_definitions(`ln -sf ${PROJECT_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/bin/supertuxkart.app/Contents/Resources`)
else()
add_definitions(-DSUPERTUXKART_DATADIR=${CMAKE_INSTALL_PREFIX}/share/games/supertuxkart)
# Build the final executable
add_executable(supertuxkart ${SRCS})