-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
60 lines (51 loc) · 1.49 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
cmake_minimum_required(VERSION 3.0.2)
project(abb_driver)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(catkin REQUIRED COMPONENTS industrial_robot_client simple_message)
catkin_package(
CATKIN_DEPENDS industrial_robot_client
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(${PROJECT_NAME}_robot_state
src/abb_robot_state_node.cpp
src/abb_utils.cpp)
target_link_libraries(${PROJECT_NAME}_robot_state
industrial_robot_client
simple_message
${catkin_LIBRARIES})
set_target_properties(
${PROJECT_NAME}_robot_state
PROPERTIES OUTPUT_NAME robot_state PREFIX "")
target_compile_definitions(
${PROJECT_NAME}_robot_state
PRIVATE
${industrial_robot_client_DEFINITIONS})
add_executable(${PROJECT_NAME}_motion_download_interface
src/abb_joint_downloader_node.cpp
src/abb_utils.cpp)
target_link_libraries(${PROJECT_NAME}_motion_download_interface
industrial_robot_client
simple_message
${catkin_LIBRARIES})
set_target_properties(${PROJECT_NAME}_motion_download_interface
PROPERTIES OUTPUT_NAME motion_download_interface PREFIX "")
target_compile_definitions(
${PROJECT_NAME}_motion_download_interface
PRIVATE
${industrial_robot_client_DEFINITIONS})
install(
TARGETS
${PROJECT_NAME}_robot_state
${PROJECT_NAME}_motion_download_interface
DESTINATION
${CATKIN_PACKAGE_BIN_DESTINATION}
)
foreach(dir launch rapid)
install(
DIRECTORY ${dir}/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/${dir})
endforeach()