-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (59 loc) · 1.86 KB
/
CMakeLists.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cmake_minimum_required(VERSION 3.5.0)
project(tesseract_collision_benchmark VERSION 0.1.0 LANGUAGES CXX)
find_package(catkin REQUIRED COMPONENTS
moveit_core
moveit_ros_planning_interface
random_numbers
tesseract_rosutils)
find_package(Eigen3 REQUIRED)
find_package(console_bridge REQUIRED)
find_package(tesseract_geometry REQUIRED)
find_package(tesseract_common REQUIRED)
find_package(tesseract_collision REQUIRED)
find_package(tesseract_urdf REQUIRED)
find_package(tesseract_environment REQUIRED)
find_package(tesseract_collision_physx REQUIRED)
catkin_package(
INCLUDE_DIRS
include
${EIGEN3_INCLUDE_DIRS}
CATKIN_DEPENDS
moveit_core
moveit_ros_planning_interface
random_numbers
tesseract_rosutils
DEPENDS
EIGEN3
console_bridge
tesseract_geometry
tesseract_common
tesseract_collision
tesseract_urdf
tesseract_environment
tesseract_collision_physx
)
add_executable(${PROJECT_NAME} src/tesseract_collision_benchmark.cpp src/utils.cpp)
target_link_libraries(${PROJECT_NAME}
tesseract::tesseract_urdf
tesseract::tesseract_environment_core
tesseract::tesseract_environment_ofkt
tesseract::tesseract_collision_bullet
tesseract::tesseract_collision_fcl
tesseract::tesseract_collision_physx
${catkin_LIBRARIES})
target_include_directories(${PROJECT_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>")
target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ${catkin_INCLUDE_DIRS})
install(
TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
# Mark cpp header files for installation
install(DIRECTORY include/${PROJECT_NAME}
DESTINATION include
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
PATTERN ".svn" EXCLUDE
)