Geometry/tests/CMakeLists.txt

11 lines
306 B
CMake
Raw Normal View History

2023-12-31 19:17:56 +01:00
FetchContent_Declare(
catch
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.6)
FetchContent_MakeAvailable(catch)
add_executable(testlib testgeometry.cpp)
target_link_libraries(testlib PRIVATE Geometry Catch2::Catch2)
add_test(NAME testlibtest COMMAND testlib)