This commit is contained in:
Timur A. Fatkhullin
2024-04-13 23:47:22 +03:00
parent 53779d2f13
commit ca46e89536
3 changed files with 33 additions and 9 deletions

View File

@@ -4,6 +4,7 @@ project(ADC LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# set(CMAKE_BUILD_TYPE Release)
set(ADC_COMMON_HEADERS
@@ -16,7 +17,7 @@ set(ADC_DEVICE_HEADERS
device/adc_device_command.h
)
option(BUILD_TESTS "Buiuld tests" ON)
option(BUILD_TESTS "Build tests" ON)
if (BUILD_TESTS)
find_package(doctest)
@@ -35,6 +36,9 @@ if (BUILD_TESTS)
endif()
target_link_libraries(${VALUEHOLDER_TEST_APP} PRIVATE doctest::doctest)
include(CTest)
add_test(VALUE_HOLDER ${VALUEHOLDER_TEST_APP})
enable_testing()
endif(BUILD_TESTS)
include(GNUInstallDirs)