Fixed: ryzom_client_patcher compilation

This commit is contained in:
kervala 2010-09-04 19:51:20 +02:00
parent 9895da21d0
commit 7f72ef0bcb
6 changed files with 27 additions and 29 deletions

View file

@ -34,6 +34,7 @@ IF(COMMAND cmake_policy)
ENDIF(COMMAND cmake_policy)
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/nel.cmake)
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/ConfigureChecks.cmake)
INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL)
# Force out of source builds.
@ -112,8 +113,6 @@ ENDIF(FINAL_VERSION)
IF(WITH_QT)
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui QtXml REQUIRED)
ENDIF(WITH_QT)
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
IF(WITH_NEL)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include)

View file

@ -49,7 +49,6 @@ MACRO(NL_DEFAULT_PROPS name label)
ENDIF(${type} STREQUAL SHARED_LIBRARY)
ENDMACRO(NL_DEFAULT_PROPS)
###
# Adds the target suffix on Windows.
# Argument: name - the library's target name.

View file

@ -98,12 +98,9 @@ IF(WIN32)
SET(WINSOCK2_LIB ws2_32.lib)
ENDIF(WIN32)
ADD_SUBDIRECTORY(include)
# config.h configuration and use by projects
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
ADD_DEFINITIONS(-DHAVE_CONFIG_H)
NL_CONFIGURE_CHECKS()
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src)
IF(WITH_NEL_SAMPLES)

View file

@ -20,6 +20,16 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
NL_CONFIGURE_CHECKS()
IF(WITH_STATIC)
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
SET(LIBXML2_DEFINITIONS ${LIBXML2_DEFINITIONS} -DLIBXML_STATIC)
ENDIF(WITH_STATIC)
IF(NOT WIN32)
SET(EXPAT_LIBRARY expat)
ENDIF(NOT WIN32)
ADD_SUBDIRECTORY(common)
IF(WITH_RYZOM_CLIENT)

View file

@ -65,7 +65,7 @@ INCLUDE_DIRECTORIES(
${LUABIND_INCLUDE_DIR}
${LIBWWW_INCLUDE_DIR}
${CURL_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR})
)
TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
nelmisc
@ -78,23 +78,19 @@ TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
ryzom_clientsheets
ryzom_gameshare
nelpacs
${LIBXML2_LIBRARIES}
${LUA_LIBRARIES}
${LUABIND_LIBRARY}
${CURL_LIBRARIES}
${OPENSSL_LIBRARIES}
${LIBWWW_LIBRARIES}
${SEVENZIP_LIBRARY}
expat) # TODO: find expat cleanly using a find script
${EXPAT_LIBRARY}) # TODO: find expat cleanly using a find script
IF(NOT APPLE AND NOT WIN32)
TARGET_LINK_LIBRARIES(ryzom_client ${X11_LIBRARIES})
ENDIF(NOT APPLE AND NOT WIN32)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
IF(WITH_STATIC)
ADD_DEFINITIONS(-DCURL_STATICLIB -DLIBXML_STATIC)
ENDIF(WITH_STATIC)
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS} ${CURL_DEFINITIONS})
NL_DEFAULT_PROPS(ryzom_client "Ryzom, Client: Ryzom Core Client")
NL_ADD_RUNTIME_FLAGS(ryzom_client)

View file

@ -1,18 +1,15 @@
FILE(GLOB SRC *.cpp *.h
${CMAKE_SOURCE_DIR}/client/src/client_cfg.cpp
${CMAKE_SOURCE_DIR}/client/src/login_patch.cpp
${CMAKE_SOURCE_DIR}/client/src/login_xdelta.cpp
FILE(GLOB SRC main.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
)
SET(SEVENZIP_LIBRARY "ryzom_sevenzip")
ADD_EXECUTABLE(ryzom_client_patcher ${SRC})
INCLUDE_DIRECTORIES(
${CMAKE_BINARY_DIR}
${LIBXML2_INCLUDE_DIR}
${CURL_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/ryzom/client/src
)
@ -20,10 +17,10 @@ TARGET_LINK_LIBRARIES(ryzom_client_patcher ${PLATFORM_LINKFLAGS}
nelmisc
nelnet
ryzom_gameshare
${CURL_LIBRARIES}
${SEVENZIP_LIBRARY})
ryzom_sevenzip
${CURL_LIBRARIES})
ADD_DEFINITIONS(-DRZ_NO_CLIENT -DNL_USE_SEVENZIP)
ADD_DEFINITIONS(${CURL_DEFINITIONS} -DRZ_NO_CLIENT -DNL_USE_SEVENZIP)
NL_DEFAULT_PROPS(ryzom_client_patcher "Ryzom, Tools: Ryzom Client Patcher")
NL_ADD_RUNTIME_FLAGS(ryzom_client_patcher)