Use configured resolution for login/outgame/ingame
[ryzomcore.git] / ryzom / tools / client / client_patcher / CMakeLists.txt
blobfa6648c3846299d27392a4331cc567b69a55d59d
1 FILE(GLOB SRC main.cpp
2         ${CMAKE_SOURCE_DIR}/ryzom/client/src/app_bundle_utils.cpp
3         ${CMAKE_SOURCE_DIR}/ryzom/client/src/user_agent.cpp
4         ${CMAKE_SOURCE_DIR}/ryzom/client/src/login_patch.cpp
5         ${CMAKE_SOURCE_DIR}/ryzom/client/src/login_xdelta.cpp
6         ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp
7         ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h
10 # always enable custom patch server
11 ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
13 ADD_EXECUTABLE(ryzom_client_patcher ${SRC})
15 INCLUDE_DIRECTORIES(
16                         ${LIBXML2_INCLUDE_DIR}
17                         ${CURL_INCLUDE_DIRS}
18                         ${ZLIB_INCLUDE_DIR}
19                         ${CMAKE_SOURCE_DIR}/ryzom/client/src
22 TARGET_LINK_LIBRARIES(ryzom_client_patcher
23                                 nelmisc
24                                 nelweb
25                                 nelnet
26                                 ryzom_gameshare
27                                 nel_sevenzip
28                                 ${CURL_LIBRARIES})
30 IF(APPLE)
31   TARGET_LINK_LIBRARIES(ryzom_client_patcher ${FOUNDATION_FRAMEWORK})
32 ENDIF()
34 ADD_DEFINITIONS(${CURL_DEFINITIONS})
36 NL_DEFAULT_PROPS(ryzom_client_patcher "Ryzom, Tools: Ryzom Client Patcher")
37 NL_ADD_RUNTIME_FLAGS(ryzom_client_patcher)
39 IF(WITH_PCH)
40   ADD_NATIVE_PRECOMPILED_HEADER(ryzom_client_patcher ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.h ${CMAKE_SOURCE_DIR}/ryzom/client/src/stdpch.cpp)
41 ENDIF()
43 INSTALL(TARGETS ryzom_client_patcher RUNTIME DESTINATION ${RYZOM_GAMES_PREFIX} COMPONENT client)