gadm-ts/cpp/tests/CMakeLists.txt
2026-03-23 15:47:35 +01:00

20 lines
697 B
CMake

# ── Test targets ──────────────────────────────────────────────────────────────
include(CTest)
# Catch2 via FetchContent
include(FetchContent)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.7.1
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(Catch2)
include(Catch)
# Unit: PIP ray-casting
add_executable(test_pip unit/test_pip.cpp)
target_include_directories(test_pip PRIVATE ${CMAKE_SOURCE_DIR}/src)
target_link_libraries(test_pip PRIVATE Catch2::Catch2WithMain)
catch_discover_tests(test_pip)