CMakeLists.txt 2.16 KB
Newer Older
1
2
config_files(fcl_resources/config.h)

Joseph Mirabel's avatar
Joseph Mirabel committed
3
4
5
6
7
8
9
10
macro(add_fcl_template_test test_name)
  add_executable(${ARGV})
  target_link_libraries(${test_name}
    ${Boost_LIBRARIES}
    )
  add_test(${test_name} ${EXECUTABLE_OUTPUT_PATH}/${test_name})
endmacro(add_fcl_template_test)

11
12
13
macro(add_fcl_test test_name)
  add_executable(${ARGV})
  target_link_libraries(${test_name}
14
    hpp-fcl
15
16
    ${Boost_LIBRARIES}
    )
17
18
19
  add_test(${test_name} ${EXECUTABLE_OUTPUT_PATH}/${test_name})
endmacro(add_fcl_test)

20
21
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${Boost_INCLUDE_DIRS})
22
23


24
add_fcl_test(test_fcl_math test_fcl_math.cpp)
Joseph Mirabel's avatar
Joseph Mirabel committed
25

26
27
add_fcl_test(test_fcl_collision test_fcl_collision.cpp test_fcl_utility.cpp)
add_fcl_test(test_fcl_distance test_fcl_distance.cpp test_fcl_utility.cpp)
28
29
add_fcl_test(test_fcl_distance_lower_bound test_fcl_distance_lower_bound.cpp
  test_fcl_utility.cpp)
30
add_fcl_test(test_fcl_geometric_shapes test_fcl_geometric_shapes.cpp test_fcl_utility.cpp)
31
32
#add_fcl_test(test_fcl_broadphase test_fcl_broadphase.cpp test_fcl_utility.cpp)
#add_fcl_test(test_fcl_shape_mesh_consistency test_fcl_shape_mesh_consistency.cpp test_fcl_utility.cpp)
33
add_fcl_test(test_fcl_frontlist test_fcl_frontlist.cpp test_fcl_utility.cpp)
34
#add_fcl_test(test_fcl_math test_fcl_math.cpp test_fcl_utility.cpp)
35

Joseph Mirabel's avatar
Joseph Mirabel committed
36
# add_fcl_test(test_fcl_sphere_capsule test_fcl_sphere_capsule.cpp)
Joseph Mirabel's avatar
Joseph Mirabel committed
37
38
add_fcl_test(test_fcl_capsule_capsule test_fcl_capsule_capsule.cpp test_fcl_utility.cpp)
add_fcl_test(test_fcl_box_box_distance test_fcl_box_box_distance.cpp test_fcl_utility.cpp)
39
add_fcl_test(test_fcl_simple test_fcl_simple.cpp)
Joseph Mirabel's avatar
Joseph Mirabel committed
40
41
add_fcl_test(test_fcl_capsule_box_1 test_fcl_capsule_box_1.cpp test_fcl_utility.cpp)
add_fcl_test(test_fcl_capsule_box_2 test_fcl_capsule_box_2.cpp test_fcl_utility.cpp)
Florent Lamiraux's avatar
Florent Lamiraux committed
42
#add_fcl_test(test_fcl_obb test_fcl_obb.cpp)
43

44
add_fcl_test(test_fcl_bvh_models test_fcl_bvh_models.cpp test_fcl_utility.cpp)
45

Joseph Mirabel's avatar
Joseph Mirabel committed
46
add_fcl_test(test_fcl_profiling test_fcl_profiling.cpp test_fcl_utility.cpp)
jcarpent's avatar
jcarpent committed
47
PKG_CONFIG_USE_DEPENDENCY(test_fcl_profiling assimp)
Joseph Mirabel's avatar
Joseph Mirabel committed
48

49
50
add_fcl_test(test_fcl_gjk test_fcl_gjk.cpp)

Joseph Mirabel's avatar
Joseph Mirabel committed
51
52
53
## Benchmark
add_executable(benchmark benchmark.cpp test_fcl_utility.cpp)
target_link_libraries(benchmark hpp-fcl ${Boost_LIBRARIES})