summaryrefslogtreecommitdiff
path: root/3rdparty/libconfig/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/libconfig/CMakeLists.txt')
-rw-r--r--3rdparty/libconfig/CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
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