forked from ros-industrial/abb_robot_driver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
56 lines (49 loc) · 2 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.9.1)
########################################################################################################################
# Metadata
########################################################################################################################
# Read the package manifest.
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/package.xml" package_xml_str)
# Extract project name.
if(NOT package_xml_str MATCHES "<name>([A-Za-z0-9_]+)</name>")
message(FATAL_ERROR "Could not parse project name from package manifest (aborting)")
else()
set(extracted_name ${CMAKE_MATCH_1})
endif()
# Extract project version.
if(NOT package_xml_str MATCHES "<version>([0-9]+.[0-9]+.[0-9]+)</version>")
message(FATAL_ERROR "Could not parse project version from package manifest (aborting)")
else()
set(extracted_version ${CMAKE_MATCH_1})
endif()
########################################################################################################################
# CMake project
########################################################################################################################
project(${extracted_name} VERSION ${extracted_version})
#===========================================================
# Dependencies
#===========================================================
#-----------------------------
# Catkin packages
#-----------------------------
find_package(catkin REQUIRED)
#===========================================================
# Catkin package specific configurations
#===========================================================
catkin_package(
CATKIN_DEPENDS
abb_egm_hardware_interface
abb_egm_state_controller
abb_rws_service_provider
abb_rws_state_publisher
controller_manager
joint_state_controller
velocity_controllers
)
#===========================================================
# Install
#===========================================================
install(
DIRECTORY config launch
DESTINATION "${CATKIN_PACKAGE_SHARE_DESTINATION}"
)