From 3357f87a5efe478be2433787c29de640dc21b33d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 9 Jun 2024 08:09:49 -0400 Subject: Initial commit of unit tests [WIP] --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit