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

3
macro(add_fcl_test test_name)
4
  MESSAGE("add_executable ${ARGV}")
5
6
7
  add_executable(${ARGV})
  target_link_libraries(${test_name}
    fcl
8
9
    ${Boost_LIBRARIES}
    )
10
11
12
  add_test(${test_name} ${EXECUTABLE_OUTPUT_PATH}/${test_name})
endmacro(add_fcl_test)

13
14
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${Boost_INCLUDE_DIRS})
15
16
17
18
19
20
21
22
23
24


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)
add_fcl_test(test_fcl_geometric_shapes test_fcl_geometric_shapes.cpp test_fcl_utility.cpp)
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)
add_fcl_test(test_fcl_frontlist test_fcl_frontlist.cpp test_fcl_utility.cpp)
add_fcl_test(test_fcl_math test_fcl_math.cpp test_fcl_utility.cpp)

25
add_fcl_test(test_fcl_sphere_capsule test_fcl_sphere_capsule.cpp)
26
add_fcl_test(test_fcl_capsule_capsule test_fcl_capsule_capsule.cpp)
27
add_fcl_test(test_fcl_box_box_distance test_fcl_box_box_distance.cpp)
28
add_fcl_test(test_fcl_simple test_fcl_simple.cpp)
29
30
add_fcl_test(test_fcl_capsule_box_1 test_fcl_capsule_box_1.cpp)
add_fcl_test(test_fcl_capsule_box_2 test_fcl_capsule_box_2.cpp)
31
#add_fcl_test(test_fcl_global_penetration test_fcl_global_penetration.cpp libsvm/svm.cpp test_fcl_utility.cpp)
32
add_fcl_test(test_fcl_bvh_models test_fcl_bvh_models.cpp test_fcl_utility.cpp)
33

34
35
36
if (FCL_HAVE_OCTOMAP)
  add_fcl_test(test_fcl_octomap test_fcl_octomap.cpp test_fcl_utility.cpp)
endif()
panjia1983's avatar
panjia1983 committed
37