summaryrefslogtreecommitdiff
path: root/3rdparty
diff options
context:
space:
mode:
authorflaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-06-29 12:26:51 +0000
committerflaviojs <flaviojs@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-06-29 12:26:51 +0000
commitdd73c6ea546a8828653cdce38a52f575cbdd3b96 (patch)
tree7c388def15aaf5e09e73f563ffa39c72d7c28c2f /3rdparty
parenta9492cf82f696af37f3258e19d7767f705708e63 (diff)
downloadhercules-dd73c6ea546a8828653cdce38a52f575cbdd3b96.tar.gz
hercules-dd73c6ea546a8828653cdce38a52f575cbdd3b96.tar.bz2
hercules-dd73c6ea546a8828653cdce38a52f575cbdd3b96.tar.xz
hercules-dd73c6ea546a8828653cdce38a52f575cbdd3b96.zip
* Added experimental support for CMake. (for now: basic build, no extras, only tested with VS10 and cygwin)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14872 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/CMakeLists.txt6
-rw-r--r--3rdparty/msinttypes/CMakeLists.txt7
-rw-r--r--3rdparty/mt19937ar/CMakeLists.txt9
-rw-r--r--3rdparty/mysql/CMakeLists.txt110
-rw-r--r--3rdparty/mysql/FindMYSQL.cmake34
-rw-r--r--3rdparty/pcre/CMakeLists.txt92
-rw-r--r--3rdparty/pcre/FindPCRE.cmake35
-rw-r--r--3rdparty/zlib/CMakeLists.txt90
8 files changed, 383 insertions, 0 deletions
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
new file mode 100644
index 000000000..6e5c759cc
--- /dev/null
+++ b/3rdparty/CMakeLists.txt
@@ -0,0 +1,6 @@
+
+add_subdirectory( msinttypes )
+add_subdirectory( mt19937ar )
+add_subdirectory( mysql )
+add_subdirectory( pcre )
+add_subdirectory( zlib )
diff --git a/3rdparty/msinttypes/CMakeLists.txt b/3rdparty/msinttypes/CMakeLists.txt
new file mode 100644
index 000000000..acf17f5b4
--- /dev/null
+++ b/3rdparty/msinttypes/CMakeLists.txt
@@ -0,0 +1,7 @@
+
+if( WIN32 )
+find_path( MSINTTYPES_INCLUDE_DIRS "inttypes.h"
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
+ NO_DEFAULT_PATH )
+mark_as_advanced( MSINTTYPES_INCLUDE_DIRS )
+endif()
diff --git a/3rdparty/mt19937ar/CMakeLists.txt b/3rdparty/mt19937ar/CMakeLists.txt
new file mode 100644
index 000000000..46f155b41
--- /dev/null
+++ b/3rdparty/mt19937ar/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+find_path( MT19937AR_INCLUDE_DIRS "mt19937ar.h"
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}"
+ NO_DEFAULT_PATH )
+find_path( MT19937AR_SOURCE_DIR "mt19937ar.c"
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}"
+ NO_DEFAULT_PATH )
+mark_as_advanced( MT19937AR_INCLUDE_DIRS )
+mark_as_advanced( MT19937AR_SOURCE_DIR )
diff --git a/3rdparty/mysql/CMakeLists.txt b/3rdparty/mysql/CMakeLists.txt
new file mode 100644
index 000000000..1c14d7395
--- /dev/null
+++ b/3rdparty/mysql/CMakeLists.txt
@@ -0,0 +1,110 @@
+
+#
+# local copy
+#
+if( WIN32 )
+message( STATUS "Detecting local MYSQL" )
+find_path( LOCAL_MYSQL_INCLUDE_DIRS "mysql.h"
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
+ NO_DEFAULT_PATH )
+find_library( LOCAL_MYSQL_LIBRARIES
+ NAMES libmysql
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}/lib"
+ NO_DEFAULT_PATH )
+mark_as_advanced( LOCAL_MYSQL_LIBRARIES )
+mark_as_advanced( LOCAL_MYSQL_INCLUDE_DIRS )
+
+if( LOCAL_MYSQL_LIBRARIES AND LOCAL_MYSQL_INCLUDE_DIRS )
+ if( EXISTS "${LOCAL_MYSQL_INCLUDE_DIRS}/mysql_version.h" )
+ file( STRINGS "${LOCAL_MYSQL_INCLUDE_DIRS}/mysql_version.h" MYSQL_VERSION_H REGEX "^#define MYSQL_SERVER_VERSION[ \t]+\"[^\"]+\".*$" )
+ string( REGEX REPLACE "^.*MYSQL_SERVER_VERSION[ \t]+\"([^\"]+)\".*$" "\\1" MYSQL_SERVER_VERSION "${MYSQL_VERSION_H}" )
+ message( STATUS "Found MYSQL: ${LOCAL_MYSQL_LIBRARIES} (found version ${MYSQL_SERVER_VERSION})" )
+ else()
+ message( STATUS "Found MYSQL: ${LOCAL_MYSQL_LIBRARIES}" )
+ endif()
+ set( HAVE_LOCAL_MYSQL ON
+ CACHE BOOL "mysql client is available as a local copy")
+else()
+ foreach( _VAR LOCAL_MYSQL_LIBRARIES LOCAL_MYSQL_INCLUDE_DIRS )
+ if( NOT "${_VAR}" )
+ set( MISSING_VARS ${MISSING_VARS} ${_VAR} )
+ endif()
+ endforeach()
+ message( STATUS "Could NOT find MYSQL (missing: ${MISSING_VARS})" )
+ unset( HAVE_LOCAL_MYSQL CACHE )
+endif()
+message( STATUS "Detecting local MYSQL - done" )
+endif( WIN32 )
+
+
+#
+# system
+#
+message( STATUS "Detecting system MYSQL" )
+find_program( MYSQL_CONFIG_EXECUTABLE "mysql_config" )
+mark_as_advanced( MYSQL_CONFIG_EXECUTABLE )
+if( MYSQL_CONFIG_EXECUTABLE )
+ # use mysql_config data
+ message( "Found mysql_config: ${MYSQL_CONFIG_EXECUTABLE}" )
+ execute_process( COMMAND "${MYSQL_CONFIG_EXECUTABLE} --libs"
+ OUTPUT_VARIABLE MYSQL_LIBRARIES )
+ execute_process( COMMAND "${MYSQL_CONFIG_EXECUTABLE} --include"
+ OUTPUT_VARIABLE MYSQL_INCLUDE_DIRS )
+ execute_process( COMMAND "${MYSQL_CONFIG_EXECUTABLE} --version"
+ OUTPUT_VARIABLE MYSQL_VERSION )
+ message( STATUS "Found MYSQL: ${MYSQL_LIBRARIES} (found version ${MYSQL_VERSION})" )
+else()
+ # find mysql package
+ set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH} )
+ find_package( MYSQL )
+endif()
+set( SYSTEM_MYSQL_LIBRARIES "${MYSQL_LIBRARIES}"
+ CACHE PATH "system mysql libraries" )
+set( SYSTEM_MYSQL_INCLUDE_DIRS "${MYSQL_INCLUDE_DIRS}"
+ CACHE PATH "system mysql include directories" )
+mark_as_advanced( SYSTEM_MYSQL_LIBRARIES )
+mark_as_advanced( SYSTEM_MYSQL_INCLUDE_DIRS )
+
+if( SYSTEM_MYSQL_LIBRARIES AND SYSTEM_MYSQL_INCLUDE_DIRS )
+ set( HAVE_SYSTEM_MYSQL ON
+ CACHE BOOL "mysql client is available on the system" )
+endif()
+message( STATUS "Detecting system MYSQL - done" )
+
+
+# options
+
+#
+# configure
+#
+unset( MYSQL_LIBRARIES CACHE )
+unset( MYSQL_INCLUDE_DIRS CACHE )
+if( HAVE_LOCAL_MYSQL )
+ set( USE_LOCAL_MYSQL ON
+ CACHE BOOL "use local copy of mysql" )
+else()
+ unset( USE_LOCAL_MYSQL CACHE )
+endif()
+if( USE_LOCAL_MYSQL )
+ message( STATUS "Configuring for local MYSQL" )
+ set( MYSQL_LIBRARIES ${LOCAL_MYSQL_LIBRARIES} )
+ set( MYSQL_INCLUDE_DIRS ${LOCAL_MYSQL_INCLUDE_DIRS} )
+ message( STATUS "Configuring for local MYSQL - done" )
+elseif( HAVE_SYSTEM_MYSQL )
+ message( STATUS "Configuring for system MYSQL" )
+ set( MYSQL_LIBRARIES ${SYSTEM_MYSQL_LIBRARIES} )
+ set( MYSQL_INCLUDE_DIRS ${SYSTEM_MYSQL_INCLUDE_DIRS} )
+ message( STATUS "Configuring for system MYSQL - done" )
+endif()
+if( USE_LOCAL_MYSQL OR HAVE_SYSTEM_MYSQL )
+ set( USE_MYSQL ON
+ CACHE BOOL "use mysql" )
+else()
+ unset( USE_MYSQL CACHE )
+endif()
+set( MYSQL_LIBRARIES ${MYSQL_LIBRARIES}
+ CACHE PATH "mysql libraries" )
+set( MYSQL_INCLUDE_DIRS ${MYSQL_INCLUDE_DIRS}
+ CACHE PATH "mysql include directories" )
+mark_as_advanced( MYSQL_LIBRARIES )
+mark_as_advanced( MYSQL_INCLUDE_DIRS )
diff --git a/3rdparty/mysql/FindMYSQL.cmake b/3rdparty/mysql/FindMYSQL.cmake
new file mode 100644
index 000000000..5ac264098
--- /dev/null
+++ b/3rdparty/mysql/FindMYSQL.cmake
@@ -0,0 +1,34 @@
+# - Find mysqlclient
+# Find the native MySQL includes and library
+#
+# MYSQL_INCLUDE_DIR - where to find mysql.h, etc.
+# MYSQL_LIBRARIES - List of libraries when using MySQL.
+# MYSQL_FOUND - True if MySQL found.
+#
+# Based on: http://www.itk.org/Wiki/CMakeUserFindMySQL
+
+find_path( MYSQL_INCLUDE_DIR "mysql.h"
+ PATH_SUFFIXES "mysql" )
+
+set( MYSQL_NAMES mysqlclient mysqlclient_r )
+find_library( MYSQL_LIBRARY
+ NAMES ${MYSQL_NAMES}
+ PATH_SUFFIXES "mysql" )
+mark_as_advanced( MYSQL_LIBRARY MYSQL_INCLUDE_DIR )
+
+if( MYSQL_INCLUDE_DIR AND EXISTS "${MYSQL_INCLUDE_DIR}/mysql_version.h" )
+ file( STRINGS "${MYSQL_INCLUDE_DIR}/mysql_version.h" MYSQL_VERSION_H REGEX "^#define[ \t]+MYSQL_SERVER_VERSION[ \t]+\"[^\"]+\".*$" )
+ string( REGEX REPLACE "^.*MYSQL_SERVER_VERSION[ \t]+\"([^\"]+)\".*$" "\\1" MYSQL_VERSION_STRING "${MYSQL_VERSION_H}" )
+endif()
+
+# handle the QUIETLY and REQUIRED arguments and set MYSQL_FOUND to TRUE if
+# all listed variables are TRUE
+include( FindPackageHandleStandardArgs )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS( MYSQL
+ REQUIRED_VARS MYSQL_LIBRARY MYSQL_INCLUDE_DIR
+ VERSION_VAR MYSQL_VERSION_STRING )
+
+if( MYSQL_FOUND )
+ set( MYSQL_LIBRARIES ${PCRE_LIBRARY} )
+ set( MYSQL_INCLUDE_DIRS ${PCRE_INCLUDE_DIR} )
+endif()
diff --git a/3rdparty/pcre/CMakeLists.txt b/3rdparty/pcre/CMakeLists.txt
new file mode 100644
index 000000000..0625999b1
--- /dev/null
+++ b/3rdparty/pcre/CMakeLists.txt
@@ -0,0 +1,92 @@
+
+#
+# local copy
+#
+if( WIN32 )
+message( STATUS "Detecting local PCRE" )
+find_path( LOCAL_PCRE_INCLUDE_DIRS "pcre.h"
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
+ NO_DEFAULT_PATH )
+find_library( LOCAL_PCRE_LIBRARIES
+ NAMES pcre
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}/lib"
+ NO_DEFAULT_PATH )
+mark_as_advanced( LOCAL_PCRE_LIBRARIES )
+mark_as_advanced( LOCAL_PCRE_INCLUDE_DIRS )
+
+if( LOCAL_PCRE_LIBRARIES AND LOCAL_PCRE_INCLUDE_DIRS )
+ file( STRINGS "${LOCAL_PCRE_INCLUDE_DIRS}/pcre.h" PCRE_H REGEX "^#define[ \t]+PCRE_M[A-Z]+[ \t]+[0-9]+.*$" )
+ string( REGEX REPLACE "^.*PCRE_MAJOR[ \t]+([0-9]+).*$" "\\1" PCRE_MAJOR "${PCRE_H}" )
+ string( REGEX REPLACE "^.*PCRE_MINOR[ \t]+([0-9]+).*$" "\\1" PCRE_MINOR "${PCRE_H}" )
+ message( STATUS "Found PCRE: ${LOCAL_PCRE_LIBRARIES} (found version ${PCRE_MAJOR}.${PCRE_MINOR})" )
+ set( HAVE_LOCAL_PCRE ON
+ CACHE BOOL "pcre is available as a local copy" )
+else()
+ foreach( _VAR LOCAL_PCRE_LIBRARIES LOCAL_PCRE_INCLUDE_DIRS )
+ if( NOT "${_VAR}" )
+ set( MISSING_VARS ${MISSING_VARS} ${_VAR} )
+ endif()
+ endforeach()
+ message( STATUS "Could NOT find PCRE (missing: ${MISSING_VARS})" )
+ unset( HAVE_LOCAL_PCRE CACHE )
+endif()
+message( STATUS "Detecting local PCRE - done" )
+endif( WIN32 )
+
+
+#
+# system
+#
+message( STATUS "Detecting system PCRE" )
+set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_MODULE_PATH} )
+find_package( PCRE )
+set( SYSTEM_PCRE_LIBRARIES ${PCRE_LIBRARIES}
+ CACHE PATH "system pcre libraries" )
+set( SYSTEM_PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIRS}
+ CACHE PATH "system pcre include directories" )
+mark_as_advanced( SYSTEM_PCRE_LIBRARIES )
+mark_as_advanced( SYSTEM_PCRE_INCLUDE_DIRS )
+
+if( SYSTEM_PCRE_LIBRARIES AND SYSTEM_PCRE_INCLUDE_DIRS )
+ set( HAVE_SYSTEM_PCRE ON
+ CACHE BOOL "pcre is available on the system" )
+else()
+ unset( HAVE_SYSTEM_PCRE CACHE )
+endif()
+message( STATUS "Detecting system PCRE - done" )
+
+
+#
+# configure
+#
+unset( PCRE_LIBRARIES CACHE )
+unset( PCRE_INCLUDE_DIRS CACHE )
+if( HAVE_LOCAL_PCRE )
+ set( USE_LOCAL_PCRE ON
+ CACHE BOOL "use local copy of pcre" )
+else()
+ unset( USE_LOCAL_PCRE CACHE )
+endif()
+if( USE_LOCAL_PCRE )
+ message( STATUS "Configuring for local PCRE" )
+ set( PCRE_LIBRARIES ${LOCAL_PCRE_LIBRARIES} )
+ set( PCRE_INCLUDE_DIRS ${LOCAL_PCRE_INCLUDE_DIRS} )
+ message( STATUS "Configuring for local PCRE - done" )
+elseif( HAVE_SYSTEM_PCRE )
+ message( STATUS "Configuring for system PCRE" )
+ set( PCRE_LIBRARIES ${SYSTEM_PCRE_LIBRARIES} )
+ set( PCRE_INCLUDE_DIRS ${SYSTEM_PCRE_INCLUDE_DIRS} )
+ message( STATUS "Configuring for system PCRE - done" )
+endif()
+if( USE_LOCAL_PCRE OR HAVE_SYSTEM_PCRE )
+ set( USE_PCRE ON
+ CACHE BOOL "use pcre" )
+else()
+ unset( USE_PCRE CACHE )
+endif()
+set( PCRE_LIBRARIES ${PCRE_LIBRARIES}
+ CACHE PATH "pcre libraries" )
+set( PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIRS}
+ CACHE PATH "pcre include directories" )
+mark_as_advanced( PCRE_LIBRARIES )
+mark_as_advanced( PCRE_INCLUDE_DIRS )
diff --git a/3rdparty/pcre/FindPCRE.cmake b/3rdparty/pcre/FindPCRE.cmake
new file mode 100644
index 000000000..cb4d9177b
--- /dev/null
+++ b/3rdparty/pcre/FindPCRE.cmake
@@ -0,0 +1,35 @@
+# - Find pcre
+# Find the native PCRE includes and library
+#
+# PCRE_INCLUDE_DIRS - where to find pcre.h
+# PCRE_LIBRARIES - List of libraries when using pcre.
+# PCRE_FOUND - True if pcre found.
+
+
+find_path( PCRE_INCLUDE_DIR pcre.h )
+
+set( PCRE_NAMES pcre )
+find_library( PCRE_LIBRARY NAMES ${PCRE_NAMES} )
+mark_as_advanced( PCRE_LIBRARY PCRE_INCLUDE_DIR )
+
+if( PCRE_INCLUDE_DIR AND EXISTS "${PCRE_INCLUDE_DIR}/pcre.h" )
+ file( STRINGS "${PCRE_INCLUDE_DIR}/pcre.h" PCRE_H REGEX "^#define[ \t]+PCRE_M[A-Z]+[ \t]+[0-9]+.*$" )
+ string( REGEX REPLACE "^.*PCRE_MAJOR[ \t]+([0-9]+).*$" "\\1" PCRE_MAJOR "${PCRE_H}" )
+ string( REGEX REPLACE "^.*PCRE_MINOR[ \t]+([0-9]+).*$" "\\1" PCRE_MINOR "${PCRE_H}" )
+
+ set( PCRE_VERSION_STRING "${PCRE_MAJOR}.${PCRE_MINOR}" )
+ set( PCRE_VERSION_MAJOR "${PCRE_MAJOR}" )
+ set( PCRE_VERSION_MINOR "${PCRE_MINOR}" )
+endif()
+
+# handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if
+# all listed variables are TRUE
+include( FindPackageHandleStandardArgs )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS( PCRE
+ REQUIRED_VARS PCRE_LIBRARY PCRE_INCLUDE_DIR
+ VERSION_VAR PCRE_VERSION_STRING )
+
+if( PCRE_FOUND )
+ set( PCRE_LIBRARIES ${PCRE_LIBRARY} )
+ set( PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR} )
+endif()
diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt
new file mode 100644
index 000000000..849813be0
--- /dev/null
+++ b/3rdparty/zlib/CMakeLists.txt
@@ -0,0 +1,90 @@
+
+#
+# local copy
+#
+if( WIN32 )
+message( STATUS "Detecting local ZLIB" )
+find_path( LOCAL_ZLIB_INCLUDE_DIRS "zlib.h"
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
+ NO_DEFAULT_PATH )
+find_library( LOCAL_ZLIB_LIBRARIES
+ NAMES zdll
+ PATHS "${CMAKE_CURRENT_SOURCE_DIR}/lib"
+ NO_DEFAULT_PATH )
+mark_as_advanced( LOCAL_ZLIB_LIBRARIES )
+mark_as_advanced( LOCAL_ZLIB_INCLUDE_DIRS )
+
+if( LOCAL_ZLIB_LIBRARIES AND LOCAL_ZLIB_INCLUDE_DIRS )
+ file( STRINGS "${LOCAL_ZLIB_INCLUDE_DIRS}/zlib.h" ZLIB_H REGEX "^#define[ \t]+ZLIB_VERSION[ \t]+\"[^\"]+\".*$" )
+ string( REGEX REPLACE "^.*ZLIB_VERSION[ \t]+\"([^\"]+)\".*$" "\\1" ZLIB_VERSION "${ZLIB_H}" )
+ message( STATUS "Found local ZLIB: ${LOCAL_ZLIB_LIBRARIES} (found version ${ZLIB_VERSION})" )
+ set( HAVE_LOCAL_ZLIB ON
+ CACHE BOOL "zlib is available as a local copy" )
+else()
+ foreach( _VAR LOCAL_ZLIB_LIBRARIES LOCAL_ZLIB_INCLUDE_DIRS )
+ if( NOT "${_VAR}" )
+ set( MISSING_VARS ${MISSING_VARS} ${_VAR} )
+ endif()
+ endforeach()
+ message( STATUS "Could NOT find local ZLIB (missing: ${MISSING_VARS})" )
+ unset( HAVE_LOCAL_ZLIB CACHE )
+endif()
+message( STATUS "Detecting local ZLIB - done" )
+endif( WIN32 )
+
+
+#
+# system
+#
+message( STATUS "Detecting system ZLIB" )
+find_package( ZLIB )
+set( SYSTEM_ZLIB_LIBRARIES ${ZLIB_LIBRARIES}
+ CACHE PATH "system zlib libraries" )
+set( SYSTEM_ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS}
+ CACHE PATH "system zlib include directories" )
+mark_as_advanced( SYSTEM_ZLIB_LIBRARIES )
+mark_as_advanced( SYSTEM_ZLIB_INCLUDE_DIRS )
+
+if( SYSTEM_ZLIB_LIBRARIES AND SYSTEM_ZLIB_INCLUDE_DIRS )
+ set( HAVE_SYSTEM_ZLIB ON
+ CACHE BOOL "zlib is available on the system" )
+else()
+ unset( HAVE_SYSTEM_ZLIB CACHE )
+endif()
+message( STATUS "Detecting system ZLIB - done" )
+
+
+#
+# configure
+#
+unset( ZLIB_LIBRARIES CACHE )
+unset( ZLIB_INCLUDE_DIRS CACHE )
+if( HAVE_LOCAL_ZLIB )
+ set( USE_LOCAL_ZLIB ON
+ CACHE BOOL "use local copy of zlib" )
+else()
+ unset( USE_LOCAL_ZLIB CACHE )
+endif()
+if( USE_LOCAL_ZLIB )
+ message( STATUS "Configuring for local ZLIB" )
+ set( ZLIB_LIBRARIES ${LOCAL_ZLIB_LIBRARIES} )
+ set( ZLIB_INCLUDE_DIRS ${LOCAL_ZLIB_INCLUDE_DIRS} )
+ message( STATUS "Configuring for local ZLIB - done" )
+elseif( HAVE_SYSTEM_ZLIB )
+ message( STATUS "Configuring for system ZLIB" )
+ set( ZLIB_LIBRARIES ${SYSTEM_ZLIB_LIBRARIES} )
+ set( ZLIB_INCLUDE_DIRS ${SYSTEM_ZLIB_INCLUDE_DIRS} )
+ message( STATUS "Configuring for system ZLIB - done" )
+endif()
+if( USE_LOCAL_ZLIB OR HAVE_SYSTEM_ZLIB )
+ set( USE_ZLIB ON
+ CACHE BOOL "use zlib" )
+else()
+ unset( USE_ZLIB CACHE )
+endif()
+set( ZLIB_LIBRARIES ${ZLIB_LIBRARIES}
+ CACHE PATH "zlib libraries" )
+set( ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS}
+ CACHE PATH "zlib include directories" )
+mark_as_advanced( ZLIB_LIBRARIES )
+mark_as_advanced( ZLIB_INCLUDE_DIRS )