forked from fkhadivar/iiwa_toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (40 loc) · 1.62 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
cmake_minimum_required(VERSION 3.0.2)
project(iiwa_toolkit)
add_compile_options(-std=c++14)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
sensor_msgs
message_generation
iiwa_tools
dynamic_reconfigure
)
#add dynamic reconfigure api
generate_dynamic_reconfigure_options(
cfg/passive_cfg_params.cfg
cfg/marker_tracking_cfg_params.cfg
)
find_package(Eigen3 REQUIRED eigen3)
catkin_package(
INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS roscpp rospy std_msgs sensor_msgs message_generation iiwa_tools dynamic_reconfigure
# DEPENDS system_lib
)
include_directories( include ${catkin_INCLUDE_DIRS})
include_directories(${EIGEN3_INCLUDE_DIR})
add_executable(limbo_interface src/node_limbo_interface.cpp ${MODEL_SOURCES})
target_link_libraries(limbo_interface ${catkin_LIBRARIES} ${Eigen3_LIBRARIES})
add_executable(passive_track src/node_passive_track.cpp src/passive_control.cpp include/thirdparty/Utils.cpp ${MODEL_SOURCES})
target_link_libraries(passive_track ${catkin_LIBRARIES} ${Eigen3_LIBRARIES})
add_dependencies(passive_track ${PROJECT_NAME}_gencfg)
add_executable(marker_following src/node_marker_following.cpp src/motion_capture.cpp src/passive_control.cpp include/thirdparty/Utils.cpp ${MODEL_SOURCES})
target_link_libraries(marker_following ${catkin_LIBRARIES} ${Eigen3_LIBRARIES})
add_dependencies(marker_following ${PROJECT_NAME}_gencfg)