aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-12-06 12:27:23 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-12-06 12:27:23 -0500
commit64551ae0434176b19d4abf908eee08e75890dfb6 (patch)
tree6e7c9d34a9575fe09fc0145aa848ce830cd9df04 /CMakeLists.txt
parentae93deb9b1f4c83addd90e49af35543ce0c23a38 (diff)
downloadspmc-64551ae0434176b19d4abf908eee08e75890dfb6.tar.gz
Cummulative work
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index efefe50..a130cda 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.15)
project(spm C)
+include(CheckSymbolExists)
set(CMAKE_C_STANDARD 99)
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+check_symbol_exists(strsep string.h HAVE_STRSEP)
+configure_file(config.h.in config.h)
-add_executable(spm spm.c) \ No newline at end of file
+add_executable(spm spm.c config.c spm.h config.h.in compat.c)
+target_link_libraries(spm rt)