Skip to content

Commit

Permalink
tests: fix CMakeLists. Nesterov benchmark is not a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmontaut authored and jcarpent committed Oct 25, 2022
1 parent 228bb0a commit 02c1760
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ add_fcl_test(profiling profiling.cpp)

add_fcl_test(gjk gjk.cpp)
add_fcl_test(nesterov_gjk nesterov_gjk.cpp)
add_fcl_test(benchmark_nesterov_gjk benchmark_nesterov_gjk.cpp)
add_fcl_test(gjk_convergence_criterion gjk_convergence_criterion.cpp)
if(HPP_FCL_HAS_OCTOMAP)
add_fcl_test(octree octree.cpp)
Expand All @@ -76,16 +75,23 @@ add_fcl_test(broadphase_collision_2 broadphase_collision_2.cpp)
## Benchmark
IF(BUILD_TESTING)
add_executable(test-benchmark benchmark.cpp)
add_executable(benchmark-nesterov-gjk benchmark_nesterov_gjk.cpp)
ELSE()
add_executable(test-benchmark EXCLUDE_FROM_ALL benchmark.cpp)
add_executable(benchmark-nesterov-gjk EXCLUDE_FROM_ALL benchmark_nesterov_gjk.cpp)
ENDIF()
target_link_libraries(test-benchmark
PUBLIC
utility
Boost::chrono
Boost::filesystem
${PROJECT_NAME}
)

macro(add_fcl_benchmark benchmark_name)
target_link_libraries(${benchmark_name}
PUBLIC
utility
Boost::chrono
Boost::filesystem
${PROJECT_NAME}
)
endmacro(add_fcl_benchmark)
add_fcl_benchmark(test-benchmark)
add_fcl_benchmark(benchmark-nesterov-gjk)

## Python tests
IF(BUILD_PYTHON_INTERFACE)
Expand Down

0 comments on commit 02c1760

Please sign in to comment.