-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
62 lines (51 loc) · 1.67 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
cmake_minimum_required(VERSION 3.8)
project(scaled_fjt_controller)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(ament_cmake REQUIRED)
find_package(joint_trajectory_controller REQUIRED)
find_package(controller_interface REQUIRED)
find_package(hardware_interface REQUIRED)
find_package(pluginlib REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rclcpp_lifecycle REQUIRED)
set(THIS_PACKAGE_INCLUDE_DEPENDS
joint_trajectory_controller
controller_interface
hardware_interface
pluginlib
rclcpp
rclcpp_lifecycle
)
include_directories(include)
add_library(scaled_fjt_controller SHARED
src/scaled_fjt_controller.cpp
src/microinterpolator.cpp
)
target_include_directories(scaled_fjt_controller PRIVATE
include
)
ament_target_dependencies(scaled_fjt_controller PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS})
pluginlib_export_plugin_description_file(controller_interface scaled_fjt_controller.xml)
install(
DIRECTORY include/
DESTINATION include/scaled_fjt_controller
)
install(
TARGETS
scaled_fjt_controller
EXPORT export_scaled_fjt_controller
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
)
## Install project namespaced headers
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION include/scaled_fjt_controller
FILES_MATCHING PATTERN "*.h*"
PATTERN ".svn" EXCLUDE)
ament_export_targets(export_scaled_fjt_controller HAS_LIBRARY_TARGET)
ament_export_include_directories(include)
ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS})
ament_package()