mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 10:10:52 +00:00
Fixed: libwww GNU Regex, libcurl OpenSSL dependencies under Windows
This commit is contained in:
parent
2f0e1ceb27
commit
a54335e454
3 changed files with 31 additions and 2 deletions
|
@ -84,12 +84,33 @@ FIND_WWW_LIBRARY(LIBWWWXML_LIBRARY wwwxml)
|
|||
FIND_WWW_LIBRARY(LIBWWWZIP_LIBRARY wwwzip)
|
||||
|
||||
# combine all the libraries into one variable
|
||||
SET(LIBWWW_LIBRARY
|
||||
SET(LIBWWW_LIBRARIES
|
||||
${LIBWWWAPP_LIBRARY} ${LIBWWWCORE_LIBRARY} ${LIBWWWDIR_LIBRARY} ${LIBWWWHTML_LIBRARY}
|
||||
${LIBWWWHTTP_LIBRARY} ${LIBWWWINIT_LIBRARY} ${LIBWWWMIME_LIBRARY} ${LIBWWWMUX_LIBRARY}
|
||||
${LIBWWWSTREAM_LIBRARY} ${LIBWWWCACHE_LIBRARY} ${LIBWWWFILE_LIBRARY} ${LIBWWWTRANS_LIBRARY} ${LIBWWWUTILS_LIBRARY}
|
||||
)
|
||||
|
||||
# Windows libwww version needs GNU Regex
|
||||
IF(WIN32)
|
||||
FIND_PATH(LIBWWW_REGEX_INCLUDE_DIR
|
||||
regex.h
|
||||
PATHS
|
||||
/usr/local/include
|
||||
/usr/include
|
||||
/sw/include
|
||||
/opt/local/include
|
||||
/opt/csw/include
|
||||
/opt/include
|
||||
)
|
||||
|
||||
# combine both include directories into one variable
|
||||
IF(LIBWWW_REGEX_INCLUDE_DIR)
|
||||
SET(LIBWWW_INCLUDE_DIR ${LIBWWW_INCLUDE_DIR} ${LIBWWW_REGEX_INCLUDE_DIR})
|
||||
FIND_WWW_LIBRARY(LIBREGEX_LIBRARY gnu_regex)
|
||||
SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${LIBREGEX_LIBRARY})
|
||||
ENDIF(LIBWWW_REGEX_INCLUDE_DIR)
|
||||
ENDIF(WIN32)
|
||||
|
||||
IF(LIBWWW_LIBRARY AND LIBWWW_INCLUDE_DIR)
|
||||
SET(LIBWWW_FOUND "YES")
|
||||
IF(NOT LIBWWW_FIND_QUIETLY)
|
||||
|
|
|
@ -8,6 +8,7 @@ ELSE(WITH_LUA51)
|
|||
ENDIF(WITH_LUA51)
|
||||
FIND_PACKAGE(Luabind REQUIRED)
|
||||
FIND_PACKAGE(CURL REQUIRED)
|
||||
FIND_PACKAGE(OpenSSL REQUIRED)
|
||||
FIND_PACKAGE(Libwww)
|
||||
FIND_PACKAGE(ZLIB)
|
||||
IF(NOT WIN32 AND NOT APPLE)
|
||||
|
@ -17,6 +18,8 @@ ENDIF(NOT WIN32 AND NOT APPLE)
|
|||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common/src )
|
||||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/common )
|
||||
|
||||
NL_CONFIGURE_CHECKS()
|
||||
|
||||
ADD_SUBDIRECTORY(common)
|
||||
|
||||
IF(WITH_RYZOM_CLIENT)
|
||||
|
|
|
@ -81,7 +81,8 @@ TARGET_LINK_LIBRARIES(ryzom_client ${PLATFORM_LINKFLAGS}
|
|||
${LUA_LIBRARIES}
|
||||
${LUABIND_LIBRARY}
|
||||
${CURL_LIBRARIES}
|
||||
${LIBWWW_LIBRARY}
|
||||
${OPENSSL_LIBRARIES}
|
||||
${LIBWWW_LIBRARIES}
|
||||
${SEVENZIP_LIBRARY}
|
||||
expat) # TODO: find expat cleanly using a find script
|
||||
|
||||
|
@ -91,6 +92,10 @@ ENDIF(NOT APPLE AND NOT WIN32)
|
|||
|
||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||
|
||||
IF(WITH_STATIC)
|
||||
ADD_DEFINITIONS(-DCURL_STATICLIB -DLIBXML_STATIC)
|
||||
ENDIF(WITH_STATIC)
|
||||
|
||||
NL_DEFAULT_PROPS(ryzom_client "Ryzom, Client: Ryzom Core Client")
|
||||
NL_ADD_RUNTIME_FLAGS(ryzom_client)
|
||||
|
||||
|
|
Loading…
Reference in a new issue