khanat-opennel-code/code/ryzom/common/src/game_share/CMakeLists.txt

34 lines
1.2 KiB
Text
Raw Normal View History

2010-05-06 00:08:41 +00:00
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(game_share STATIC ${SRC})
ELSE(WIN32)
ADD_LIBRARY(game_share SHARED ${SRC})
ENDIF(WIN32)
2010-05-06 00:08:41 +00:00
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
TARGET_LINK_LIBRARIES(game_share ${NELMISC_LIBRARY})
SET_TARGET_PROPERTIES(game_share PROPERTIES VERSION ${NL_VERSION})
2010-05-06 00:08:41 +00:00
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:libc;libcmt;libcmtd;msvcrt"
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libc;libcmt;libcmtd;msvcrtd")
2010-05-06 00:08:41 +00:00
ENDIF(WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
INSTALL(TARGETS game_share LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)