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

44 lines
1.3 KiB
Text
Raw Permalink Normal View History

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/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
)
# always enable custom patch server
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
2016-02-01 15:04:21 +00:00
ADD_EXECUTABLE(khanat_client_patcher ${SRC})
INCLUDE_DIRECTORIES(
2016-01-27 13:42:19 +00:00
${LIBXML2_INCLUDE_DIR}
${CURL_INCLUDE_DIRS}
2016-02-12 17:28:23 +00:00
${ZLIB_INCLUDE_DIR}
${CMAKE_SOURCE_DIR}/ryzom/client/src
)
2016-02-01 15:04:21 +00:00
TARGET_LINK_LIBRARIES(khanat_client_patcher
nelmisc
nelnet
ryzom_gameshare
ryzom_sevenzip
${CURL_LIBRARIES})
IF(APPLE)
FIND_LIBRARY(FOUNDATION_LIBRARY Foundation)
2016-02-01 15:04:21 +00:00
TARGET_LINK_LIBRARIES(khanat_client_patcher ${FOUNDATION_LIBRARY})
2016-10-27 08:54:09 +00:00
ENDIF()
ADD_DEFINITIONS(${CURL_DEFINITIONS})
2016-02-01 15:04:21 +00:00
NL_DEFAULT_PROPS(khanat_client_patcher "Khanat, Tools: Khanat Client Patcher")
NL_ADD_RUNTIME_FLAGS(khanat_client_patcher)
IF(WITH_PCH)
2016-02-01 15:04:21 +00:00
ADD_NATIVE_PRECOMPILED_HEADER(khanat_client_patcher ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp)
2016-10-27 08:54:09 +00:00
ENDIF()
2016-02-01 15:04:21 +00:00
INSTALL(TARGETS khanat_client_patcher RUNTIME DESTINATION ${RYZOM_GAMES_PREFIX} COMPONENT client)