1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
enable_testing()
add_executable(
wall_collision
rir/wall_collision.cpp
)
target_link_libraries(
wall_collision
torch
GTest::gtest_main
)
target_include_directories(
wall_collision
PRIVATE
"${PROJECT_SOURCE_DIR}/src"
)
add_test(NAME wall_collision_test COMMAND wall_collision)
|