khanat-opennel-code/code/snowballs2/CMakeLists.txt

32 lines
1.1 KiB
Text
Raw Normal View History

2012-03-22 19:31:07 +00:00
IF(WIN32)
SET(SNOWBALLS_CONFIG_FILE "." CACHE FILEPATH "Snowballs config file location")
ELSE(WIN32)
SET(SNOWBALLS_CONFIG_FILE "${NL_ETC_PREFIX}/snowballs" CACHE FILEPATH "Snowballs config file location")
ENDIF(WIN32)
2011-04-29 17:15:53 +00:00
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")
2012-03-22 19:31:07 +00:00
# Note: Not sure if this is still the best way to do this...
#INSTALL(CODE "FILE(MAKE_DIRECTORY ${SNOWBALLS_LOG_FILE})")
2011-04-29 17:15:53 +00:00
#-----------------------------------------------------------------------------
#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}/")
2012-03-22 19:31:07 +00:00
IF(WITH_SNOWBALLS_CLIENT)
2011-04-29 17:15:53 +00:00
ADD_SUBDIRECTORY(client)
2012-03-22 19:31:07 +00:00
ENDIF(WITH_SNOWBALLS_CLIENT)
2011-04-29 17:15:53 +00:00
2012-03-22 19:31:07 +00:00
IF(WITH_SNOWBALLS_SERVER)
2011-04-29 17:15:53 +00:00
ADD_SUBDIRECTORY(server)
2012-03-22 19:31:07 +00:00
ENDIF(WITH_SNOWBALLS_SERVER)
2011-04-29 17:15:53 +00:00
2012-03-22 19:31:07 +00:00
IF(WITH_SNOWBALLS_PACKAGE)
INCLUDE(CMakePackaging.txt)
ENDIF(WITH_SNOWBALLS_PACKAGE)
2011-04-29 17:15:53 +00:00