CMakeLists.txt 1.74 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
    ${Boost_LIBRARIES}
16
    utility
17
    )
18
  PKG_CONFIG_USE_DEPENDENCY(${test_name} assimp)
19
20
21
  add_test(${test_name} ${EXECUTABLE_OUTPUT_PATH}/${test_name})
endmacro(add_fcl_test)

22
include_directories(${CMAKE_CURRENT_BINARY_DIR})
23
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
24

25
add_library(utility STATIC utility.cpp)
26

27
28
add_fcl_test(math math.cpp)

29
30
31
32
33
34
35
36
add_fcl_test(collision collision.cpp)
add_fcl_test(distance distance.cpp)
add_fcl_test(distance_lower_bound distance_lower_bound.cpp)
add_fcl_test(geometric_shapes geometric_shapes.cpp)
#add_fcl_test(broadphase broadphase.cpp)
#add_fcl_test(shape_mesh_consistency shape_mesh_consistency.cpp)
add_fcl_test(frontlist frontlist.cpp)
#add_fcl_test(math math.cpp)
37
38

# add_fcl_test(sphere_capsule sphere_capsule.cpp)
39
40
add_fcl_test(capsule_capsule capsule_capsule.cpp)
add_fcl_test(box_box_distance box_box_distance.cpp)
41
add_fcl_test(simple simple.cpp)
42
43
add_fcl_test(capsule_box_1 capsule_box_1.cpp)
add_fcl_test(capsule_box_2 capsule_box_2.cpp)
44
add_fcl_test(obb obb.cpp)
45
add_fcl_test(convex convex.cpp)
46

47
add_fcl_test(bvh_models bvh_models.cpp)
48

49
add_fcl_test(profiling profiling.cpp)
50
51
52
PKG_CONFIG_USE_DEPENDENCY(profiling assimp)

add_fcl_test(gjk gjk.cpp)
53
if(HPP_FCL_HAVE_OCTOMAP)
54
  add_fcl_test(octree octree.cpp)
55
endif(HPP_FCL_HAVE_OCTOMAP)
56

Joseph Mirabel's avatar
Joseph Mirabel committed
57
## Benchmark
58
59
add_executable(test-benchmark benchmark.cpp)
target_link_libraries(test-benchmark hpp-fcl ${Boost_LIBRARIES} utility)