Debian Codegraph @

Tests/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 file(GLOB TESTS_SOURCES Detour/*.cpp Recast/*.cpp)
2
3 include_directories(../Detour/Include)
4 include_directories(../Recast/Include)
5
6 add_executable(Tests ${TESTS_SOURCES})
7
8 set_property(TARGET Tests PROPERTY CXX_STANDARD 17)
9
10 add_dependencies(Tests Recast Detour)
11 target_link_libraries(Tests Recast Detour)
12
13 find_package(Catch2 QUIET)
14 if (Catch2_FOUND)
15 target_link_libraries(Tests Catch2::Catch2WithMain)
16 else()
17 include_directories(./Contrib)
18 target_sources(Tests PRIVATE Contrib/catch2/catch_amalgamated.cpp)
19 endif()
20
21 add_test(Tests Tests)