| 1 |
include_directories(../Detour/Include) |
| 2 |
include_directories(../Recast/Include) |
| 3 |
|
| •4 |
add_executable(Tests |
| 5 |
Detour/Tests_Detour.cpp |
| 6 |
Recast/Bench_rcVector.cpp |
| 7 |
Recast/Tests_Alloc.cpp |
| 8 |
Recast/Tests_Recast.cpp |
| 9 |
Recast/Tests_RecastFilter.cpp |
| 10 |
DetourCrowd/Tests_DetourPathCorridor.cpp |
| 11 |
) |
| 12 |
|
| 13 |
set_property(TARGET Tests PROPERTY CXX_STANDARD 17) |
| 14 |
|
| •15 |
add_dependencies(Tests Recast Detour DetourCrowd) |
| 16 |
target_link_libraries(Tests Recast Detour DetourCrowd) |
| 17 |
|
| 18 |
find_package(Catch2 QUIET) |
| 19 |
if (Catch2_FOUND) |
| 20 |
target_link_libraries(Tests Catch2::Catch2WithMain) |
| 21 |
else() |
| 22 |
include_directories(./Contrib) |
| 23 |
target_sources(Tests PRIVATE Contrib/catch2/catch_amalgamated.cpp) |
| 24 |
endif() |
| 25 |
|
| 26 |
add_test(Tests Tests) |