Change Encyclo button name and macros icon
[ryzomcore.git] / snowballs2 / CMakeLists.txt
blob368754236ad661425484d7a7fa43cd7989f3eff1
1 IF(WIN32)
2   SET(SNOWBALLS_CONFIG_FILE "." CACHE FILEPATH "Snowballs config file location")
3 ELSE()
4   SET(SNOWBALLS_CONFIG_FILE "${NL_ETC_PREFIX}/snowballs" CACHE FILEPATH "Snowballs config file location")
5 ENDIF()
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 #-----------------------------------------------------------------------------
13 #Platform specifics
15 ###
16 # An example of finding NeL 3D and CEGUI Renderer.
17 ###
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)
22 ENDIF()
24 IF(WITH_SNOWBALLS_SERVER)
25   ADD_SUBDIRECTORY(server)
26 ENDIF()
28 IF(WITH_SNOWBALLS_PACKAGE)
29   INCLUDE(CMakePackaging.txt)
30 ENDIF()