summaryrefslogtreecommitdiff
path: root/3rdparty
diff options
context:
space:
mode:
authorShido <the.keikun@gmail.com>2014-05-17 17:42:40 +0800
committerShido <the.keikun@gmail.com>2014-05-30 09:20:04 +0800
commit05902619eb900472906b9cce38b276e3517d1719 (patch)
treeee24cadaad612c89969461e67d11184ba5c3879e /3rdparty
parentaed877235088b6f1d27b6fd03813c2d59e8e13c1 (diff)
downloadhercules-05902619eb900472906b9cce38b276e3517d1719.tar.gz
hercules-05902619eb900472906b9cce38b276e3517d1719.tar.bz2
hercules-05902619eb900472906b9cce38b276e3517d1719.tar.xz
hercules-05902619eb900472906b9cce38b276e3517d1719.zip
Removed CMakeLists.txt (Thanks to Haruna)
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/CMakeLists.txt55
-rw-r--r--3rdparty/libconfig/CMakeLists.txt29
-rw-r--r--3rdparty/msinttypes/CMakeLists.txt9
-rw-r--r--3rdparty/mt19937ar/CMakeLists.txt16
-rw-r--r--3rdparty/mysql/CMakeLists.txt68
-rw-r--r--3rdparty/pcre/CMakeLists.txt65
-rw-r--r--3rdparty/zlib/CMakeLists.txt64
7 files changed, 0 insertions, 306 deletions
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
deleted file mode 100644
index 3b60b68dc..000000000
--- a/3rdparty/CMakeLists.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-
-# macro to configure the use of local or system version of a package
-# Uses:
-# HAVE_LOCAL_${name} - is local version available?
-# ${name}_LOCAL_LIBRARIES - libraries of the local version
-# ${name}_LOCAL_INCLUDE_DIRS - include directories of the local version
-# HAVE_SYSTEM_${name} - is system version available?
-# ${name}_SYSTEM_LIBRARIES - libraries of the system version
-# ${name}_SYSTEM_INCLUDE_DIRS - include directories of the system version
-# Generates:
-# WITH_LOCAL_${name} - use the local version of the package (only when local is available)
-# WITH_${name} - use this package
-# ${name}_LIBRARIES - libraries
-# ${name}_INCLUDE_DIRS - include directories
-macro( CONFIGURE_WITH_LOCAL_OR_SYSTEM name )
- unset( ${name}_LIBRARIES CACHE )
- unset( ${name}_INCLUDE_DIRS CACHE )
- if( HAVE_LOCAL_${name} )
- set( WITH_LOCAL_${name} ON
- CACHE BOOL "use local version of ${name}" )
- else()
- unset( WITH_LOCAL_${name} CACHE )
- endif()
- if( WITH_LOCAL_${name} )
- message( STATUS "Configuring for local ${name}" )
- set( ${name}_LIBRARIES ${${name}_LOCAL_LIBRARIES} )
- set( ${name}_INCLUDE_DIRS ${${name}_LOCAL_INCLUDE_DIRS} )
- message( STATUS "Configuring for local ${name} - done" )
- elseif( HAVE_SYSTEM_${name} )
- message( STATUS "Configuring for system ${name}" )
- set( ${name}_LIBRARIES ${${name}_SYSTEM_LIBRARIES} )
- set( ${name}_INCLUDE_DIRS ${${name}_SYSTEM_INCLUDE_DIRS} )
- message( STATUS "Configuring for system ${name} - done" )
- endif()
- if( WITH_LOCAL_${name} OR HAVE_SYSTEM_${name} )
- set( WITH_${name} ON
- CACHE BOOL "use ${name}" )
- else()
- unset( WITH_${name} CACHE )
- endif()
- set( ${name}_LIBRARIES ${${name}_LIBRARIES}
- CACHE PATH "${name} libraries" )
- set( ${name}_INCLUDE_DIRS ${${name}_INCLUDE_DIRS}
- CACHE PATH "${name} include directories" )
- mark_as_advanced( ${name}_LIBRARIES )
- mark_as_advanced( ${name}_INCLUDE_DIRS )
-endmacro( CONFIGURE_WITH_LOCAL_OR_SYSTEM )
-
-
-add_subdirectory( libconfig )
-add_subdirectory( msinttypes )
-add_subdirectory( mt19937ar )
-add_subdirectory( mysql )
-add_subdirectory( pcre )
-add_subdirectory( zlib )
diff --git a/3rdparty/libconfig/CMakeLists.txt b/3rdparty/libconfig/CMakeLists.txt
deleted file mode 100644
index a99441249..000000000
--- a/3rdparty/libconfig/CMakeLists.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-
-find_path( LIBCONFIG_INCLUDE_DIRS "libconfig.h"
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}"
- NO_DEFAULT_PATH )
-find_path( LIBCONFIG_SOURCE_DIR "libconfig.c"
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}"
- NO_DEFAULT_PATH )
-mark_as_advanced( LIBCONFIG_INCLUDE_DIRS )
-mark_as_advanced( LIBCONFIG_SOURCE_DIR )
-
-set( LIBCONFIG_HEADERS
- "${CMAKE_CURRENT_SOURCE_DIR}/grammar.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/libconfig.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/parsectx.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/scanctx.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/scanner.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/strbuf.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/wincompat.h"
- CACHE INTERNAL "libconfig headers" )
-set( LIBCONFIG_SOURCES
- "${CMAKE_CURRENT_SOURCE_DIR}/grammar.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/libconfig.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/scanctx.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/scanner.c"
- "${CMAKE_CURRENT_SOURCE_DIR}/strbuf.c"
- CACHE INTERNAL "libconfig sources" )
-set( LIBCONFIG_DEFINITIONS
- "-DLIBCONFIG_STATIC"
- CACHE INTERNAL "libconfig definitions" )
diff --git a/3rdparty/msinttypes/CMakeLists.txt b/3rdparty/msinttypes/CMakeLists.txt
deleted file mode 100644
index c11c1d72a..000000000
--- a/3rdparty/msinttypes/CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-
-if( MSVC )
-find_path( MSINTTYPES_INCLUDE_DIRS "inttypes.h"
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
- NO_DEFAULT_PATH )
-mark_as_advanced( MSINTTYPES_INCLUDE_DIRS )
-message( STATUS "Adding global include directory: ${MSINTTYPES_INCLUDE_DIRS}" )
-set_property( CACHE GLOBAL_INCLUDE_DIRS PROPERTY VALUE ${GLOBAL_INCLUDE_DIRS} ${MSINTTYPES_INCLUDE_DIRS} )
-endif()
diff --git a/3rdparty/mt19937ar/CMakeLists.txt b/3rdparty/mt19937ar/CMakeLists.txt
deleted file mode 100644
index 08eff5790..000000000
--- a/3rdparty/mt19937ar/CMakeLists.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-
-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 )
-
-set( MT19937AR_HEADERS
- "${CMAKE_CURRENT_SOURCE_DIR}/mt19937ar.h"
- CACHE INTERNAL "mt19937ar headers" )
-set( MT19937AR_SOURCES
- "${CMAKE_CURRENT_SOURCE_DIR}/mt19937ar.c"
- CACHE INTERNAL "mt19937ar sources" )
diff --git a/3rdparty/mysql/CMakeLists.txt b/3rdparty/mysql/CMakeLists.txt
deleted file mode 100644
index e85fd626d..000000000
--- a/3rdparty/mysql/CMakeLists.txt
+++ /dev/null
@@ -1,68 +0,0 @@
-
-#
-# local copy
-#
-if( WIN32 )
-message( STATUS "Detecting local MYSQL" )
-find_path( MYSQL_LOCAL_INCLUDE_DIRS "mysql.h"
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
- NO_DEFAULT_PATH )
-find_library( MYSQL_LOCAL_LIBRARIES
- NAMES libmysql
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}/lib"
- NO_DEFAULT_PATH )
-mark_as_advanced( MYSQL_LOCAL_LIBRARIES )
-mark_as_advanced( MYSQL_LOCAL_INCLUDE_DIRS )
-
-if( MYSQL_LOCAL_LIBRARIES AND MYSQL_LOCAL_INCLUDE_DIRS )
- if( EXISTS "${MYSQL_LOCAL_INCLUDE_DIRS}/mysql_version.h" )
- file( STRINGS "${MYSQL_LOCAL_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: ${MYSQL_LOCAL_LIBRARIES} (found version ${MYSQL_SERVER_VERSION})" )
- else()
- message( STATUS "Found MYSQL: ${MYSQL_LOCAL_LIBRARIES}" )
- endif()
- set( HAVE_LOCAL_MYSQL ON
- CACHE BOOL "mysql client is available as a local copy")
- mark_as_advanced( HAVE_LOCAL_MYSQL )
-else()
- foreach( _VAR MYSQL_LOCAL_LIBRARIES MYSQL_LOCAL_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" )
-unset( MYSQL_LIBRARIES CACHE )
-unset( MYSQL_INCLUDE_DIRS CACHE )
-find_package( MYSQL )
-set( MYSQL_SYSTEM_LIBRARIES "${MYSQL_LIBRARIES}"
- CACHE PATH "system mysql libraries" )
-set( MYSQL_SYSTEM_INCLUDE_DIRS "${MYSQL_INCLUDE_DIRS}"
- CACHE PATH "system mysql include directories" )
-mark_as_advanced( MYSQL_SYSTEM_LIBRARIES )
-mark_as_advanced( MYSQL_SYSTEM_INCLUDE_DIRS )
-
-if( MYSQL_SYSTEM_LIBRARIES AND MYSQL_SYSTEM_INCLUDE_DIRS )
- set( HAVE_SYSTEM_MYSQL ON
- CACHE BOOL "mysql client is available on the system" )
- mark_as_advanced( HAVE_SYSTEM_MYSQL )
-else()
- unset( HAVE_SYSTEM_MYSQL CACHE )
-endif()
-message( STATUS "Detecting system MYSQL - done" )
-
-
-#
-# configure
-#
-CONFIGURE_WITH_LOCAL_OR_SYSTEM( MYSQL )
diff --git a/3rdparty/pcre/CMakeLists.txt b/3rdparty/pcre/CMakeLists.txt
deleted file mode 100644
index 57465a46c..000000000
--- a/3rdparty/pcre/CMakeLists.txt
+++ /dev/null
@@ -1,65 +0,0 @@
-
-#
-# local copy
-#
-if( WIN32 )
-message( STATUS "Detecting local PCRE" )
-find_path( PCRE_LOCAL_INCLUDE_DIRS "pcre.h"
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
- NO_DEFAULT_PATH )
-find_library( PCRE_LOCAL_LIBRARIES
- NAMES pcre
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}/lib"
- NO_DEFAULT_PATH )
-mark_as_advanced( PCRE_LOCAL_LIBRARIES )
-mark_as_advanced( PCRE_LOCAL_INCLUDE_DIRS )
-
-if( PCRE_LOCAL_LIBRARIES AND PCRE_LOCAL_INCLUDE_DIRS )
- file( STRINGS "${PCRE_LOCAL_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: ${PCRE_LOCAL_LIBRARIES} (found version ${PCRE_MAJOR}.${PCRE_MINOR})" )
- set( HAVE_LOCAL_PCRE ON
- CACHE BOOL "pcre is available as a local copy" )
- mark_as_advanced( HAVE_LOCAL_PCRE )
-else()
- foreach( _VAR PCRE_LOCAL_LIBRARIES PCRE_LOCAL_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" )
-unset( PCRE_LIBRARIES CACHE )
-unset( PCRE_INCLUDE_DIRS CACHE )
-find_package( PCRE )
-set( PCRE_SYSTEM_LIBRARIES ${PCRE_LIBRARIES}
- CACHE PATH "system pcre libraries" )
-set( PCRE_SYSTEM_INCLUDE_DIRS ${PCRE_INCLUDE_DIRS}
- CACHE PATH "system pcre include directories" )
-mark_as_advanced( PCRE_SYSTEM_LIBRARIES )
-mark_as_advanced( PCRE_SYSTEM_INCLUDE_DIRS )
-
-if( PCRE_SYSTEM_LIBRARIES AND PCRE_SYSTEM_INCLUDE_DIRS )
- set( HAVE_SYSTEM_PCRE ON
- CACHE BOOL "pcre is available on the system" )
- mark_as_advanced( HAVE_SYSTEM_PCRE )
-else()
- unset( HAVE_SYSTEM_PCRE CACHE )
-endif()
-message( STATUS "Detecting system PCRE - done" )
-
-
-#
-# configure
-#
-CONFIGURE_WITH_LOCAL_OR_SYSTEM( PCRE )
diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt
deleted file mode 100644
index 4002908f5..000000000
--- a/3rdparty/zlib/CMakeLists.txt
+++ /dev/null
@@ -1,64 +0,0 @@
-
-#
-# local copy
-#
-if( WIN32 )
-message( STATUS "Detecting local ZLIB" )
-find_path( ZLIB_LOCAL_INCLUDE_DIRS "zlib.h"
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}/include"
- NO_DEFAULT_PATH )
-find_library( ZLIB_LOCAL_LIBRARIES
- NAMES zdll
- PATHS "${CMAKE_CURRENT_SOURCE_DIR}/lib"
- NO_DEFAULT_PATH )
-mark_as_advanced( ZLIB_LOCAL_LIBRARIES )
-mark_as_advanced( ZLIB_LOCAL_INCLUDE_DIRS )
-
-if( ZLIB_LOCAL_LIBRARIES AND ZLIB_LOCAL_INCLUDE_DIRS )
- file( STRINGS "${ZLIB_LOCAL_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: ${ZLIB_LOCAL_LIBRARIES} (found version ${ZLIB_VERSION})" )
- set( HAVE_LOCAL_ZLIB ON
- CACHE BOOL "zlib is available as a local copy" )
- mark_as_advanced( HAVE_LOCAL_ZLIB )
-else()
- foreach( _VAR ZLIB_LOCAL_LIBRARIES ZLIB_LOCAL_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" )
-unset( ZLIB_LIBRARIES CACHE )
-unset( ZLIB_INCLUDE_DIRS CACHE )
-find_package( ZLIB )
-set( ZLIB_SYSTEM_LIBRARIES ${ZLIB_LIBRARIES}
- CACHE PATH "system zlib libraries" )
-set( ZLIB_SYSTEM_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS}
- CACHE PATH "system zlib include directories" )
-mark_as_advanced( ZLIB_SYSTEM_LIBRARIES )
-mark_as_advanced( ZLIB_SYSTEM_INCLUDE_DIRS )
-
-if( ZLIB_SYSTEM_LIBRARIES AND ZLIB_SYSTEM_INCLUDE_DIRS )
- set( HAVE_SYSTEM_ZLIB ON
- CACHE BOOL "zlib is available on the system" )
- mark_as_advanced( HAVE_SYSTEM_ZLIB )
-else()
- unset( HAVE_SYSTEM_ZLIB CACHE )
-endif()
-message( STATUS "Detecting system ZLIB - done" )
-
-
-#
-# configure
-#
-CONFIGURE_WITH_LOCAL_OR_SYSTEM( ZLIB )