|
|
|
@ -91,7 +91,7 @@ FIND_WWW_LIBRARY(LIBWWWZIP_LIBRARY wwwzip)
|
|
|
|
|
FIND_WWW_LIBRARY(LIBMD5_LIBRARY md5)
|
|
|
|
|
|
|
|
|
|
# Windows libwww version needs GNU Regex
|
|
|
|
|
IF(WIN32)
|
|
|
|
|
IF(WIN32 AND WITH_STATIC)
|
|
|
|
|
FIND_PATH(LIBWWW_REGEX_INCLUDE_DIR
|
|
|
|
|
regex.h
|
|
|
|
|
PATHS
|
|
|
|
@ -108,19 +108,26 @@ IF(WIN32)
|
|
|
|
|
SET(LIBWWW_INCLUDE_DIR ${LIBWWW_INCLUDE_DIR} ${LIBWWW_REGEX_INCLUDE_DIR})
|
|
|
|
|
FIND_WWW_LIBRARY(LIBREGEX_LIBRARY gnu_regex)
|
|
|
|
|
ENDIF(LIBWWW_REGEX_INCLUDE_DIR)
|
|
|
|
|
ELSE(WIN32)
|
|
|
|
|
FIND_PACKAGE(EXPAT)
|
|
|
|
|
SET(LIBWWW_INCLUDE_DIR ${LIBWWW_INCLUDE_DIR} ${EXPAT_INCLUDE_DIRS})
|
|
|
|
|
SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${EXPAT_LIBRARIES})
|
|
|
|
|
ENDIF(WIN32)
|
|
|
|
|
ENDIF(WIN32 AND WITH_STATIC)
|
|
|
|
|
|
|
|
|
|
IF(LIBWWW_LIBRARIES AND LIBWWW_INCLUDE_DIR)
|
|
|
|
|
SET(LIBWWW_FOUND "YES")
|
|
|
|
|
IF(NOT LIBWWW_FIND_QUIETLY)
|
|
|
|
|
MESSAGE(STATUS "Found LibWWW: ${LIBWWW_LIBRARIES}")
|
|
|
|
|
ENDIF(NOT LIBWWW_FIND_QUIETLY)
|
|
|
|
|
ELSE(LIBWWW_LIBRARIES AND LIBWWW_INCLUDE_DIR)
|
|
|
|
|
IF(NOT LIBWWW_FIND_QUIETLY)
|
|
|
|
|
MESSAGE(STATUS "Warning: Unable to find LibWWW!")
|
|
|
|
|
ENDIF(NOT LIBWWW_FIND_QUIETLY)
|
|
|
|
|
ENDIF(LIBWWW_LIBRARIES AND LIBWWW_INCLUDE_DIR)
|
|
|
|
|
IF(WITH_STATIC)
|
|
|
|
|
# If compiled with expat support
|
|
|
|
|
FIND_PACKAGE(EXPAT QUIET)
|
|
|
|
|
IF(EXPAT_FOUND)
|
|
|
|
|
SET(LIBWWW_INCLUDE_DIR ${LIBWWW_INCLUDE_DIR} ${EXPAT_INCLUDE_DIRS})
|
|
|
|
|
SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${EXPAT_LIBRARIES})
|
|
|
|
|
ENDIF(EXPAT_FOUND)
|
|
|
|
|
|
|
|
|
|
# If compiled with OpenSSL support
|
|
|
|
|
FIND_PACKAGE(OpenSSL QUIET)
|
|
|
|
|
IF(OPENSSL_FOUND)
|
|
|
|
|
SET(LIBWWW_INCLUDE_DIR ${LIBWWW_INCLUDE_DIR} ${OPENSSL_INCLUDE_DIR})
|
|
|
|
|
SET(LIBWWW_LIBRARIES ${LIBWWW_LIBRARIES} ${OPENSSL_LIBRARIES})
|
|
|
|
|
ENDIF(OPENSSL_FOUND)
|
|
|
|
|
ENDIF(WITH_STATIC)
|
|
|
|
|
|
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibWWW DEFAULT_MSG
|
|
|
|
|
LIBWWW_LIBRARIES
|
|
|
|
|
LIBWWW_INCLUDE_DIR
|
|
|
|
|
)
|
|
|
|
|