-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
41 lines (33 loc) · 1.39 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
cmake_minimum_required(VERSION 3.4)
cmake_policy(SET CMP0048 NEW)
project(franka_plotter)
# c++
set(CMAKE_CXX_STANDARD 11)
# eigen3
find_package(Eigen3 REQUIRED)
# libfranka
find_package(Franka)
if (NOT Franka_FOUND)
find_package(catkin COMPONENTS franka_control REQUIRED)
endif()
add_library (franka_plotter_configuration SHARED source/configuration.cpp)
target_include_directories(franka_plotter_configuration PUBLIC ${EIGEN3_INCLUDE_DIRS})
add_executable (franka_plotter
source/arc.cpp
source/bezier_cubic.cpp
source/bezier_quadratic.cpp
source/line.cpp
source/drawing.cpp
source/main.cpp
source/plotter.cpp
source/segment.cpp)
target_link_libraries (franka_plotter PUBLIC franka_plotter_configuration)
target_link_libraries (franka_plotter PUBLIC Franka::Franka)
add_executable (franka_plotter_grasp source/grasp.cpp)
target_link_libraries (franka_plotter_grasp PUBLIC franka_plotter_configuration)
target_link_libraries (franka_plotter_grasp PUBLIC Franka::Franka)
add_executable (franka_plotter_friction source/friction.cpp)
target_link_libraries (franka_plotter_friction PUBLIC franka_plotter_configuration)
target_link_libraries (franka_plotter_friction PUBLIC Franka::Franka)
configure_file(source/vectorize.sh vectorize.sh)
configure_file(source/franka_plotter.config franka_plotter.config)