1
find_package(Threads REQUIRED)

Header only library used to define tests and checks

5
6
7
8
add_library(felspar-test INTERFACE)
target_compile_features(felspar-test INTERFACE cxx_std_20)
target_include_directories(felspar-test INTERFACE ${PROJECT_SOURCE_DIR}/include)
install(DIRECTORY ../include/felspar TYPE INCLUDE)

Library needed to store tests

12
13
add_library(felspar-test-suite STATIC suite.cpp)
target_link_libraries(felspar-test-suite felspar-test Threads::Threads)

Library used for the default test runner

17
18
19
20
21
add_library(felspar-test-runner STATIC runner.cpp)
target_link_libraries(felspar-test-runner felspar-test-suite)
if(TARGET felspar-check)
    add_test_run(felspar-check TESTS runner.tests.cpp)
endif()