blob: 189100dc29cd07b60f9dc9a737b509a7b7edc841 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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)
add_subdirectory(lib)
add_subdirectory(src)
add_subdirectory(include)
add_subdirectory(scripts)
add_subdirectory(tests)
|