diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-09 08:09:49 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-09 08:09:49 -0400 |
commit | 3357f87a5efe478be2433787c29de640dc21b33d (patch) | |
tree | 262c5694ce650506afb348e7cdc521c7cb9cc629 /CMakeLists.txt | |
parent | 11aa1d44d95da221073e512fbec3bbccc0f1a46b (diff) | |
download | stasis-3357f87a5efe478be2433787c29de640dc21b33d.tar.gz |
Initial commit of unit tests [WIP]
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0824baa..66fa91b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,16 @@ endif() add_subdirectory(src) +option(BUILD_TESTING_DEBUG OFF) +if (BUILD_TESTING_DEBUG) + add_compile_options(DEBUG) +endif() +option(BUILD_TESTING OFF) +if (BUILD_TESTING) + enable_testing() + add_subdirectory(tests) +endif() + set(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_SYSCONFDIR}") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/config.h @ONLY) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/omc.ini DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/omc) |