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)
|
|
|
|
|
2010-05-10 17:17:19 +00:00
|
|
|
IF(WIN32)
|
2010-06-11 09:57:10 +00:00
|
|
|
ADD_LIBRARY(ryzom_gameshare STATIC ${SRC})
|
2010-05-10 17:17:19 +00:00
|
|
|
ELSE(WIN32)
|
2010-06-11 09:57:10 +00:00
|
|
|
ADD_LIBRARY(ryzom_gameshare SHARED ${SRC})
|
2010-05-10 17:17:19 +00:00
|
|
|
ENDIF(WIN32)
|
2010-05-06 00:08:41 +00:00
|
|
|
|
2010-05-10 17:17:19 +00:00
|
|
|
INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} ${NEL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
2010-06-11 09:57:10 +00:00
|
|
|
TARGET_LINK_LIBRARIES(ryzom_gameshare
|
|
|
|
${NELMISC_LIBRARY} ${NELNET_LIBRARY} ${NELLIGO_LIBRARY} ${NELGEORGES_LIBRARY}
|
2010-05-29 19:49:31 +00:00
|
|
|
${LIBXML2_LIBRARIES} ${ZLIB_LIBRARIES})
|
2010-06-14 08:30:17 +00:00
|
|
|
SET_TARGET_PROPERTIES(ryzom_gameshare PROPERTIES
|
|
|
|
VERSION ${NL_VERSION}
|
|
|
|
SOVERSION ${NL_VERSION_MAJOR})
|
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")
|
2010-06-11 19:56:43 +00:00
|
|
|
SET_TARGET_PROPERTIES(ryzom_gameshare
|
2010-05-10 17:17:19 +00:00
|
|
|
PROJECT_LABEL "Library: Game Share"
|
|
|
|
DEBUG_POSTFIX "_d"
|
|
|
|
RELEASE_POSTFIX "_r"
|
2010-06-11 09:57:10 +00:00
|
|
|
LINK_FLAGS_DEBUG "/NODEFAULTLIB:msvcrt")
|
2010-05-06 00:08:41 +00:00
|
|
|
ENDIF(WIN32)
|
|
|
|
|
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
|
|
|
|
2010-06-11 09:57:10 +00:00
|
|
|
INSTALL(TARGETS ryzom_gameshare LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
|
|
|
|
|