diff options
author | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-02 19:57:29 +0000 |
---|---|---|
committer | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-03-02 19:57:29 +0000 |
commit | e27e10c71f915a69f83bf81b5d0911375313f055 (patch) | |
tree | 6cbdc9b7c153ebce6ee38e00475cc30a91fee5e3 /3rdparty | |
parent | 0e8da0a06a86128c2c2a9f663592e2a8e4980141 (diff) | |
download | hercules-e27e10c71f915a69f83bf81b5d0911375313f055.tar.gz hercules-e27e10c71f915a69f83bf81b5d0911375313f055.tar.bz2 hercules-e27e10c71f915a69f83bf81b5d0911375313f055.tar.xz hercules-e27e10c71f915a69f83bf81b5d0911375313f055.zip |
Updated CMakeLists (follow-up to r15572, r15586) (patch provided by Saithis, pid:82588).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15651 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/CMakeLists.txt | 1 | ||||
-rw-r--r-- | 3rdparty/libconfig/CMakeLists.txt | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index ebbac481a..c64c8ccd1 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -48,6 +48,7 @@ endmacro( CONFIGURE_WITH_LOCAL_OR_SYSTEM ) set( CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake CACHE INTERNAL "" ) +add_subdirectory( libconfig ) add_subdirectory( msinttypes ) add_subdirectory( mt19937ar ) add_subdirectory( mysql ) diff --git a/3rdparty/libconfig/CMakeLists.txt b/3rdparty/libconfig/CMakeLists.txt new file mode 100644 index 000000000..e98b46a5c --- /dev/null +++ b/3rdparty/libconfig/CMakeLists.txt @@ -0,0 +1,26 @@ + +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" )
\ No newline at end of file |