Commit 764d321a authored by Mark Lindner's avatar Mark Lindner

Merge branch 'master' of https://github.com/hyperrealm/libconfig

parents 60d27aba 757e233e
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
# Extract version from configure.ac. # Extract version from configure.ac.
set(VERSION_REGEX "^AC_INIT\\(libconfig,[ \t]+([0-9\.]+),.*") set(VERSION_REGEX "^AC_INIT\\(libconfig,[ \t]+([0-9.]+),.*")
file(STRINGS "configure.ac" file(STRINGS "configure.ac"
VERSION_STRING REGEX ${VERSION_REGEX}) VERSION_STRING REGEX ${VERSION_REGEX})
string(REGEX REPLACE ${VERSION_REGEX} "\\1" VERSION_STRING "${VERSION_STRING}") string(REGEX REPLACE ${VERSION_REGEX} "\\1" VERSION_STRING "${VERSION_STRING}")
......
...@@ -4,6 +4,8 @@ else() ...@@ -4,6 +4,8 @@ else()
set(libname "config") set(libname "config")
endif() endif()
include_directories(${CMAKE_SOURCE_DIR}/lib)
add_executable(libconfig_tests add_executable(libconfig_tests
tests.c tests.c
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment