Move maps to /usr/local and allow these settings to get defaults from the cmakelists

This commit is contained in:
Marc Di Luzio 2014-12-31 14:07:34 +00:00
parent 3f76b6430b
commit 3f892ec2aa
3 changed files with 14 additions and 3 deletions

View file

@ -13,6 +13,14 @@ set( SOURCES
main.cpp
)
# Set defaults for ttrts maps and games
set( TTRTS_MAPS "/usr/local/share/ttrts/maps/" )
set( TTRTS_GAMES "/tmp/" )
# define these defaults in code
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTTRTS_MAPS=${TTRTS_MAPS}" )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTTRTS_GAMES=${TTRTS_GAMES}" )
# Add the executable
add_executable( ${PROJECT_NAME} ${SOURCES} )