91e6b23d3f
NMAKE-VS2012 Error LNK2011 while NMAKE-VS2010 does not complain we need to link the pch.obj file see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx ** PCH Support for Ninja Ninja need to add property OBJECT_DEPENDS for using PCH OBJECT_OUTPUTS for create PCH see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
31 lines
1.1 KiB
CMake
31 lines
1.1 KiB
CMake
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)
|
|
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)
|
|
ENDIF(WITH_SNOWBALLS_CLIENT)
|
|
|
|
IF(WITH_SNOWBALLS_SERVER)
|
|
ADD_SUBDIRECTORY(server)
|
|
ENDIF(WITH_SNOWBALLS_SERVER)
|
|
|
|
IF(WITH_SNOWBALLS_PACKAGE)
|
|
INCLUDE(CMakePackaging.txt)
|
|
ENDIF(WITH_SNOWBALLS_PACKAGE)
|
|
|