1#
2# Tests
3#
4
5enable_testing()
6
7find_package(Threads)
8
9# Build Catch unit tests
10add_library(catch INTERFACE)
11target_include_directories(catch INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
12
13file(GLOB catch_tests LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp *.h *.hpp)
14
15add_executable(catch_tests ${catch_tests})
16target_link_libraries(catch_tests spdlog ${CMAKE_THREAD_LIBS_INIT})
17add_test(NAME catch_tests COMMAND catch_tests)
18file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")
19
20