12345678910111213141516171819202122 |
- cmake_minimum_required(VERSION 3.20)
- find_package(Catch2 3 REQUIRED)
- if(CMAKE_BUILD_TYPE MATCHES Debug)
- add_compile_options(-Wall -Wno-unknown-pragmas -DDEBUG)
- endif()
- file(GLOB TestsSrc
- "./test_*.cpp"
- )
- add_executable(tests_lib ${TestsSrc})
- target_link_libraries(tests_lib PRIVATE Catch2::Catch2WithMain mcl::interface)
- add_test(RunAllTests tests_lib)
|