aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-03-24 12:27:33 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-03-24 12:27:33 -0400
commitad07c35f12ca10bd3dfea50aaf8a9db8dcc9f630 (patch)
tree4b31aa43dcb942611fef8699bc96d166cf63b68e /CMakeLists.txt
parentccaeb7092b5ad40b1b3833c987ba3ec4d47f0bb8 (diff)
downloadspmc-ad07c35f12ca10bd3dfea50aaf8a9db8dcc9f630.tar.gz
Initial commit of tests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba01f3b..189100d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,9 +1,13 @@
cmake_minimum_required(VERSION 3.11)
project(spm C)
+
+include(CTest)
include(CheckSymbolExists)
+
set(CMAKE_C_STANDARD 99)
set(CMAKE_INSTALL_RPATH $ORIGIN/../lib)
+enable_testing()
check_symbol_exists(strsep string.h HAVE_STRSEP)
check_symbol_exists(reallocarray stdlib.h HAVE_REALLOCARRAY)
configure_file(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/include/config.h)
@@ -12,3 +16,4 @@ add_subdirectory(lib)
add_subdirectory(src)
add_subdirectory(include)
add_subdirectory(scripts)
+add_subdirectory(tests)