khanat-opennel-code/code/ryzom/tools/client/client_patcher/CMakeLists.txt

45 lines
1.4 KiB
Text
Raw Normal View History

2015-12-18 12:02:31 +00:00
FILE(GLOB SRC main.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/app_bundle_utils.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/user_agent.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/client_cfg.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/login_patch.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/login_xdelta.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp
${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h
)
2016-01-01 15:27:45 +00:00
# always enable custom patch server
2016-01-27 14:16:44 +00:00
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} -DRZ_USE_CUSTOM_PATCH_SERVER)
2016-01-01 15:27:45 +00:00
2015-12-18 12:02:31 +00:00
ADD_EXECUTABLE(ryzom_client_patcher ${SRC})
INCLUDE_DIRECTORIES(
2016-01-27 14:16:44 +00:00
${LIBXML2_INCLUDE_DIR}
2015-12-18 12:02:31 +00:00
${CURL_INCLUDE_DIRS}
2016-02-04 13:33:30 +00:00
${ZLIB_INCLUDE_DIR}
2015-12-18 12:02:31 +00:00
${CMAKE_SOURCE_DIR}/ryzom/client/src
)
TARGET_LINK_LIBRARIES(ryzom_client_patcher
nelmisc
nelnet
ryzom_gameshare
ryzom_sevenzip
${CURL_LIBRARIES})
IF(APPLE)
FIND_LIBRARY(FOUNDATION_LIBRARY Foundation)
TARGET_LINK_LIBRARIES(ryzom_client_patcher ${FOUNDATION_LIBRARY})
ENDIF(APPLE)
2016-01-26 21:44:40 +00:00
ADD_DEFINITIONS(${CURL_DEFINITIONS} -DRZ_NO_CLIENT -DNL_USE_SEVENZIP)
2015-12-18 12:02:31 +00:00
NL_DEFAULT_PROPS(ryzom_client_patcher "Ryzom, Tools: Ryzom Client Patcher")
NL_ADD_RUNTIME_FLAGS(ryzom_client_patcher)
IF(WITH_PCH)
ADD_NATIVE_PRECOMPILED_HEADER(ryzom_client_patcher ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp)
ENDIF(WITH_PCH)
2016-01-04 13:03:11 +00:00
INSTALL(TARGETS ryzom_client_patcher RUNTIME DESTINATION ${RYZOM_GAMES_PREFIX} COMPONENT client)