forked from bohlender/sicks300
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
49 lines (34 loc) · 928 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(sicks300)
find_package(catkin REQUIRED COMPONENTS
roscpp
tf
sensor_msgs
)
set(CMAKE_CXX_FLAGS "-std=c++11")
catkin_package(
INCLUDE_DIRS include
LIBRARIES serialcomm_s300
CATKIN_DEPENDS roscpp tf sensor_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_library(serialcomm_s300
src/serialcomm_s300.cpp)
#target_link_libraries(serialcomm_s300 ${catkin_LIBRARIES})
add_executable(sick300_driver src/sicks300.cpp)
target_link_libraries(sick300_driver
serialcomm_s300
${catkin_LIBRARIES}
)
install(TARGETS serialcomm_s300 sick300_driver
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
)