2010-09-04 17:51:20 +00:00
|
|
|
FILE(GLOB SRC main.cpp
|
2012-01-07 18:14:24 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/ryzom/client/src/app_bundle_utils.cpp
|
2015-12-08 16:49:23 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/ryzom/client/src/user_agent.cpp
|
2010-09-04 17:51:20 +00:00
|
|
|
${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
|
2010-08-03 21:05:05 +00:00
|
|
|
)
|
|
|
|
|
2016-01-01 14:57:10 +00:00
|
|
|
# always enable custom patch server
|
|
|
|
ADD_DEFINITIONS(-DRZ_USE_CUSTOM_PATCH_SERVER)
|
|
|
|
|
2010-08-03 21:05:05 +00:00
|
|
|
ADD_EXECUTABLE(ryzom_client_patcher ${SRC})
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(
|
2010-09-05 09:29:34 +00:00
|
|
|
${LIBXML2_INCLUDE_DIR}
|
2010-08-03 21:05:05 +00:00
|
|
|
${CURL_INCLUDE_DIRS}
|
2015-02-23 12:13:11 +00:00
|
|
|
${ZLIB_INCLUDE_DIR}
|
2010-09-02 19:53:33 +00:00
|
|
|
${CMAKE_SOURCE_DIR}/ryzom/client/src
|
2010-08-03 21:05:05 +00:00
|
|
|
)
|
|
|
|
|
2010-09-29 21:52:28 +00:00
|
|
|
TARGET_LINK_LIBRARIES(ryzom_client_patcher
|
2010-09-02 19:53:33 +00:00
|
|
|
nelmisc
|
|
|
|
nelnet
|
2010-08-03 21:05:05 +00:00
|
|
|
ryzom_gameshare
|
2010-09-04 17:51:20 +00:00
|
|
|
ryzom_sevenzip
|
2015-02-23 12:13:11 +00:00
|
|
|
${ZLIB_LIBRARIES}
|
2010-09-04 17:51:20 +00:00
|
|
|
${CURL_LIBRARIES})
|
2010-08-03 21:05:05 +00:00
|
|
|
|
2012-01-10 09:19:52 +00:00
|
|
|
IF(APPLE)
|
|
|
|
FIND_LIBRARY(FOUNDATION_LIBRARY Foundation)
|
|
|
|
TARGET_LINK_LIBRARIES(ryzom_client_patcher ${FOUNDATION_LIBRARY})
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
2010-09-05 09:29:34 +00:00
|
|
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS} -DRZ_NO_CLIENT -DNL_USE_SEVENZIP)
|
2010-08-03 21:05:05 +00:00
|
|
|
|
2010-09-03 13:07:47 +00:00
|
|
|
NL_DEFAULT_PROPS(ryzom_client_patcher "Ryzom, Tools: Ryzom Client Patcher")
|
|
|
|
NL_ADD_RUNTIME_FLAGS(ryzom_client_patcher)
|
2010-09-02 19:53:33 +00:00
|
|
|
|
2010-08-03 21:05:05 +00:00
|
|
|
IF(WITH_PCH)
|
2010-09-04 16:34:09 +00:00
|
|
|
ADD_NATIVE_PRECOMPILED_HEADER(ryzom_client_patcher ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp)
|
2010-08-03 21:05:05 +00:00
|
|
|
ENDIF(WITH_PCH)
|
|
|
|
|
2012-09-27 20:17:47 +00:00
|
|
|
INSTALL(TARGETS ryzom_client_patcher RUNTIME DESTINATION ${RYZOM_GAMES_PREFIX} COMPONENT client BUNDLE DESTINATION /Applications)
|
2016-01-03 16:47:31 +00:00
|
|
|
|
|
|
|
IF(WITH_RYZOM_CLIENT AND APPLE)
|
|
|
|
IF(CODESIGN_ALLOCATE AND APPLE_CERTIFICATE)
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET ryzom_client_patcher POST_BUILD COMMAND CODESIGN_ALLOCATE=${CODESIGN_ALLOCATE} codesign -fs "${APPLE_CERTIFICATE}" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ryzom_client_patcher" COMMENT "Signing ryzom_client_patcher executable...")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET ryzom_client_patcher POST_BUILD COMMAND cp -p ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ryzom_client_patcher ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${MACOSX_BUNDLE_BUNDLE_NAME}.app/Contents/MacOS/RyzomClientPatcher)
|
|
|
|
ENDIF()
|