|
|
|
@ -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)
|
|
|
|
|