forked from ros-industrial/abb_librws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (37 loc) · 1.23 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 2.8.12)
project(abb_librws)
find_package(catkin REQUIRED COMPONENTS cmake_modules)
########################
## POCO C++ Libraries ##
########################
# we need at least 1.4.3 because of websocket support
find_package(Poco 1.4.3 REQUIRED COMPONENTS Net Util Foundation XML)
###################################
## catkin specific configuration ##
###################################
catkin_package(INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME}
DEPENDS Poco)
###########
## Build ##
###########
set(SRC_FILES
src/rws_client.cpp
src/rws_common.cpp
src/rws_interface.cpp
src/rws_poco_client.cpp
src/rws_rapid.cpp
src/rws_state_machine_interface.cpp)
include_directories(include
${Poco_INCLUDE_DIRS}
${catkin_INCLUDE_DIRS})
add_library(${PROJECT_NAME} ${SRC_FILES})
target_link_libraries(${PROJECT_NAME} ${Poco_LIBRARIES} ${catkin_LIBRARIES})
#############
## Install ##
#############
install(TARGETS ${PROJECT_NAME}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h")