mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 16:46:17 +00:00
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
72 lines
1.8 KiB
CMake
72 lines
1.8 KiB
CMake
#-----------------------------------------------------------------------------
|
|
#Platform specifics
|
|
|
|
FIND_PACKAGE(ZLIB)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
|
SET(RZ_SERVER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/server/src)
|
|
|
|
ADD_SUBDIRECTORY(common)
|
|
|
|
IF(WITH_RYZOM_CLIENT)
|
|
IF(NOT WITH_GUI)
|
|
MESSAGE( FATAL_ERROR "The client cannot be built without the NeL GUI Library (WITH_GUI)")
|
|
ENDIF(NOT WITH_GUI)
|
|
|
|
IF(WITH_LUA51)
|
|
FIND_PACKAGE(Lua51 REQUIRED)
|
|
ELSE(WITH_LUA51)
|
|
FIND_PACKAGE(Lua50 REQUIRED)
|
|
ENDIF(WITH_LUA51)
|
|
FIND_PACKAGE(Luabind REQUIRED)
|
|
FIND_PACKAGE(CURL REQUIRED)
|
|
|
|
IF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
SET(CURL_STATIC ON)
|
|
ENDIF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
|
|
IF(CURL_STATIC)
|
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
|
|
FIND_PACKAGE(OpenSSL QUIET)
|
|
|
|
IF(OPENSSL_FOUND)
|
|
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
ENDIF(OPENSSL_FOUND)
|
|
|
|
# CURL Macports version depends on libidn, libintl and libiconv too
|
|
IF(APPLE)
|
|
FIND_LIBRARY(IDN_LIBRARY idn)
|
|
FIND_LIBRARY(INTL_LIBRARY intl)
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY} ${INTL_LIBRARY})
|
|
ENDIF(APPLE)
|
|
ENDIF(CURL_STATIC)
|
|
|
|
ADD_SUBDIRECTORY(client)
|
|
|
|
ELSEIF(WITH_RYZOM_TOOLS)
|
|
|
|
# Need clientsheets lib for sheets packer tool
|
|
ADD_SUBDIRECTORY(client)
|
|
|
|
ENDIF(WITH_RYZOM_CLIENT)
|
|
|
|
IF(WITH_RYZOM_TOOLS)
|
|
ADD_SUBDIRECTORY(tools)
|
|
ENDIF(WITH_RYZOM_TOOLS)
|
|
|
|
IF(WITH_RYZOM_SERVER)
|
|
|
|
FIND_PACKAGE(MySQL REQUIRED)
|
|
ADD_SUBDIRECTORY(server)
|
|
|
|
ELSEIF(WITH_RYZOM_TOOLS)
|
|
|
|
# Need servershare for build packed collision tool
|
|
# Need aishare for build wmap tool
|
|
ADD_SUBDIRECTORY(server)
|
|
|
|
ENDIF(WITH_RYZOM_SERVER)
|