-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
42 lines (31 loc) · 1.71 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
cmake_minimum_required(VERSION 2.8.3)
project(contact_point_estimation)
find_package(catkin REQUIRED COMPONENTS roscpp geometry_msgs std_srvs eigen_utils)
find_package(Eigen REQUIRED)
find_package(Boost REQUIRED COMPONENTS thread)
include_directories(
include
${catkin_INCLUDE_DIRS}
${EIGEN_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
link_directories(${catkin_LIBRARY_DIRS})
catkin_package(
DEPENDS eigen
CATKIN_DEPENDS roscpp geometry_msgs std_srvs eigen_utils
INCLUDE_DIRS include
LIBRARIES contact_point_estimator surface_normal_estimator surface_tracing_controller
)
add_executable(contact_point_estimation_node src/ContactPointEstimatorParams.cpp src/SurfaceNormalEstimatorParams.cpp src/ContactPointEstimator.cpp src/SurfaceNormalEstimator.cpp src/contact_point_estimation_node.cpp)
target_link_libraries(contact_point_estimation_node ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_library(contact_point_estimator src/ContactPointEstimatorParams.cpp src/SurfaceNormalEstimatorParams.cpp src/ContactPointEstimator.cpp src/SurfaceNormalEstimator.cpp)
target_link_libraries(contact_point_estimator ${catkin_LIBRARIES})
add_library(surface_normal_estimator src/SurfaceNormalEstimatorParams.cpp src/SurfaceNormalEstimator.cpp)
target_link_libraries(surface_normal_estimator ${catkin_LIBRARIES})
add_library(surface_tracing_controller src/SurfaceTracingController.cpp)
target_link_libraries(surface_tracing_controller ${catkin_LIBRARIES})
install(TARGETS contact_point_estimation_node contact_point_estimator surface_normal_estimator surface_tracing_controller
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)