mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 03:59:06 +00:00
35 lines
1.3 KiB
CMake
35 lines
1.3 KiB
CMake
FILE(GLOB SRC *.cpp time_weather_season/*.cpp time_weather_season/*.h)
|
|
FILE(GLOB PRIV_H *.h)
|
|
|
|
SOURCE_GROUP(headers FILES ${PRIV_H} ${PUB_H})
|
|
|
|
# Filter out the source files not actually compiled.
|
|
LIST(REMOVE_ITEM SRC ${CMAKE_CURRENT_SOURCE_DIR}/enum_template.cpp)
|
|
LIST(REMOVE_ITEM PRIV_H ${CMAKE_CURRENT_SOURCE_DIR}/enum_template.h)
|
|
|
|
IF(WIN32)
|
|
ADD_LIBRARY(ryzom_gameshare STATIC ${SRC})
|
|
ELSE(WIN32)
|
|
ADD_LIBRARY(ryzom_gameshare SHARED ${SRC})
|
|
ENDIF(WIN32)
|
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
|
TARGET_LINK_LIBRARIES(ryzom_gameshare
|
|
${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY}
|
|
${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES})
|
|
SET_TARGET_PROPERTIES(ryzom_gameshare PROPERTIES VERSION ${NL_VERSION})
|
|
|
|
IF(WIN32)
|
|
# SET_TARGET_PROPERTIES(${GAME_SHARE_LIB} PROPERTIES COMPILE_FLAGS "/Yustdgeorges.h")
|
|
# SET_SOURCE_FILES_PROPERTIES(stdgeorges.cpp PROPERTIES COMPILE_FLAGS "/Ycstdgeorges.h")
|
|
SET_TARGET_PROPERTIES(game_share
|
|
PROJECT_LABEL "Library: Game Share"
|
|
DEBUG_POSTFIX "_d"
|
|
RELEASE_POSTFIX "_r"
|
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt")
|
|
ENDIF(WIN32)
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
INSTALL(TARGETS ryzom_gameshare LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
|
|