diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-18 22:25:27 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-03-18 22:25:27 -0400 |
| commit | ccaeb7092b5ad40b1b3833c987ba3ec4d47f0bb8 (patch) | |
| tree | ae167772a9a2343aa77bf8944b56abe853f6a2ec /CMakeLists.txt | |
| parent | 3731bb4679ee8716d4f579d5744c36a2d1b4a257 (diff) | |
| download | spmc-ccaeb7092b5ad40b1b3833c987ba3ec4d47f0bb8.tar.gz | |
Refactor project: build/install libspm[_static.a].so to make unit testing possible
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c9a674..ba01f3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,11 +2,13 @@ cmake_minimum_required(VERSION 3.11) project(spm C) include(CheckSymbolExists) set(CMAKE_C_STANDARD 99) +set(CMAKE_INSTALL_RPATH $ORIGIN/../lib) 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) |
