2 SET(SNOWBALLS_CONFIG_FILE "." CACHE FILEPATH "Snowballs config file location")
4 SET(SNOWBALLS_CONFIG_FILE "${NL_ETC_PREFIX}/snowballs" CACHE FILEPATH "Snowballs config file location")
6 SET(SNOWBALLS_DATA_FILE "${NL_SHARE_PREFIX}/games/snowballs" CACHE FILEPATH "Snowballs data file location")
7 SET(SNOWBALLS_LOG_FILE "${NL_LOG_PREFIX}/snowballs" CACHE FILEPATH "Snowballs log file location")
9 # Note: Not sure if this is still the best way to do this...
10 #INSTALL(CODE "FILE(MAKE_DIRECTORY ${SNOWBALLS_LOG_FILE})")
12 #-----------------------------------------------------------------------------
16 # An example of finding NeL 3D and CEGUI Renderer.
18 ADD_DEFINITIONS(-DSNOWBALLS_CONFIG="${SNOWBALLS_CONFIG_FILE}/" -DSNOWBALLS_STATE="${SNOWBALLS_LOG_FILE}/" -DSNOWBALLS_LOGS="${SNOWBALLS_LOG_FILE}/")
20 IF(WITH_SNOWBALLS_CLIENT)
21 ADD_SUBDIRECTORY(client)
24 IF(WITH_SNOWBALLS_SERVER)
25 ADD_SUBDIRECTORY(server)
28 IF(WITH_SNOWBALLS_PACKAGE)
29 INCLUDE(CMakePackaging.txt)