|
|
|
@ -150,31 +150,31 @@ IF(WITH_NEL)
|
|
|
|
|
IF(WITH_GUI)
|
|
|
|
|
FIND_PACKAGE(Libwww REQUIRED)
|
|
|
|
|
FIND_PACKAGE(Luabind REQUIRED)
|
|
|
|
|
ENDIF(WITH_GUI)
|
|
|
|
|
FIND_PACKAGE(CURL REQUIRED)
|
|
|
|
|
|
|
|
|
|
IF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
|
|
|
SET(CURL_STATIC ON)
|
|
|
|
|
ENDIF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
|
|
|
IF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
|
|
|
SET(CURL_STATIC ON)
|
|
|
|
|
ENDIF(WIN32 OR CURL_LIBRARIES MATCHES "\\.a")
|
|
|
|
|
|
|
|
|
|
IF(CURL_STATIC)
|
|
|
|
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
|
|
|
IF(CURL_STATIC)
|
|
|
|
|
SET(CURL_DEFINITIONS -DCURL_STATICLIB)
|
|
|
|
|
|
|
|
|
|
FIND_PACKAGE(OpenSSL QUIET)
|
|
|
|
|
FIND_PACKAGE(OpenSSL QUIET)
|
|
|
|
|
|
|
|
|
|
IF(OPENSSL_FOUND)
|
|
|
|
|
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
|
|
|
ENDIF(OPENSSL_FOUND)
|
|
|
|
|
IF(OPENSSL_FOUND)
|
|
|
|
|
SET(CURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR})
|
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
|
|
|
ENDIF(OPENSSL_FOUND)
|
|
|
|
|
|
|
|
|
|
# CURL Macports version depends on libidn, libintl and libiconv too
|
|
|
|
|
IF(APPLE)
|
|
|
|
|
FIND_LIBRARY(IDN_LIBRARY idn)
|
|
|
|
|
FIND_LIBRARY(INTL_LIBRARY intl)
|
|
|
|
|
# CURL Macports version depends on libidn, libintl and libiconv too
|
|
|
|
|
IF(APPLE)
|
|
|
|
|
FIND_LIBRARY(IDN_LIBRARY idn)
|
|
|
|
|
FIND_LIBRARY(INTL_LIBRARY intl)
|
|
|
|
|
|
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY} ${INTL_LIBRARY})
|
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
ENDIF(CURL_STATIC)
|
|
|
|
|
ENDIF(WITH_GUI)
|
|
|
|
|
SET(CURL_LIBRARIES ${CURL_LIBRARIES} ${IDN_LIBRARY} ${INTL_LIBRARY})
|
|
|
|
|
ENDIF(APPLE)
|
|
|
|
|
ENDIF(CURL_STATIC)
|
|
|
|
|
|
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/include ${LIBXML2_INCLUDE_DIR})
|
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/nel/3rdparty)
|
|
|
|
|