forked from oKermorgant/ecn_manip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (34 loc) · 1.22 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
cmake_minimum_required(VERSION 3.5)
project(ecn_manip)
set(CMAKE_BUILD_TYPE Debug)
find_package(catkin REQUIRED COMPONENTS
sensor_msgs
tf2_ros
urdf
)
find_package(VISP REQUIRED COMPONENTS core)
set(CMAKE_CXX_STANDARD 17)
catkin_package(
INCLUDE_DIRS src
LIBRARIES ecn_manip
CATKIN_DEPENDS roscpp sensor_msgs tf2_ros urdf
DEPENDS VISP)
include_directories(src ${VISP_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
# main library
add_library(ecn_manip src/robot_base.h src/robot_base.cpp src/robot_init.h
src/trig_solvers.h src/trig_solvers.cpp
src/ur_kin/ur_kin.h src/ur_kin/ur_kin.cpp
src/node.cpp src/node.h)
target_link_libraries(ecn_manip ${VISP_LIBRARIES} ${catkin_LIBRARIES})
# Main executable
add_executable(control control.cpp
src/robot_turret.h robot_turret.cpp
src/robot_ur10.h robot_ur10.cpp
src/robot_kr16.h robot_kr16.cpp
)
target_link_libraries(control ecn_manip)
# Other executables
#add_executable(test_solvers src/test_solvers.cpp)
#target_link_libraries(test_solvers ecn_manip)
add_executable(example_RRRP example/robot_rrrp.h example/robot_rrrp.cpp example/rrrp_solver.cpp)
target_link_libraries(example_RRRP ecn_manip)