You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.0 KiB
CMake
32 lines
1.0 KiB
CMake
13 years ago
|
IF(WIN32)
|
||
|
SET(SNOWBALLS_CONFIG_FILE "." CACHE FILEPATH "Snowballs config file location")
|
||
8 years ago
|
ELSE()
|
||
13 years ago
|
SET(SNOWBALLS_CONFIG_FILE "${NL_ETC_PREFIX}/snowballs" CACHE FILEPATH "Snowballs config file location")
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
SET(SNOWBALLS_DATA_FILE "${NL_SHARE_PREFIX}/games/snowballs" CACHE FILEPATH "Snowballs data file location")
|
||
|
SET(SNOWBALLS_LOG_FILE "${NL_LOG_PREFIX}/snowballs" CACHE FILEPATH "Snowballs log file location")
|
||
|
|
||
|
# Note: Not sure if this is still the best way to do this...
|
||
|
#INSTALL(CODE "FILE(MAKE_DIRECTORY ${SNOWBALLS_LOG_FILE})")
|
||
|
|
||
|
#-----------------------------------------------------------------------------
|
||
|
#Platform specifics
|
||
|
|
||
|
###
|
||
|
# An example of finding NeL 3D and CEGUI Renderer.
|
||
|
###
|
||
|
ADD_DEFINITIONS(-DSNOWBALLS_CONFIG="${SNOWBALLS_CONFIG_FILE}/" -DSNOWBALLS_STATE="${SNOWBALLS_LOG_FILE}/" -DSNOWBALLS_LOGS="${SNOWBALLS_LOG_FILE}/")
|
||
|
|
||
|
IF(WITH_SNOWBALLS_CLIENT)
|
||
|
ADD_SUBDIRECTORY(client)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_SNOWBALLS_SERVER)
|
||
|
ADD_SUBDIRECTORY(server)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|
||
|
IF(WITH_SNOWBALLS_PACKAGE)
|
||
|
INCLUDE(CMakePackaging.txt)
|
||
8 years ago
|
ENDIF()
|
||
13 years ago
|
|