11 lines
306 B
CMake
11 lines
306 B
CMake
|
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)
|