Move maps to /usr/local and allow these settings to get defaults from the cmakelists
This commit is contained in:
parent
3f76b6430b
commit
3f892ec2aa
3 changed files with 14 additions and 3 deletions
|
@ -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} )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue