-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
38 lines (30 loc) · 1.03 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
cmake_minimum_required(VERSION 3.1)
project(opensw_ros VERSION 0.1.0)
find_package(catkin REQUIRED COMPONENTS
roscpp
sensor_msgs
)
find_package(PkgConfig)
pkg_check_modules(opensw REQUIRED opensw)
link_directories(${opensw_LIBRARY_DIRS})
include_directories(
include
${catkin_INCLUDE_DIRS}
${opensw_INCLUDE_DIRS}
)
catkin_package()
add_executable(imu_driver src/imu_driver.cpp src/logger.cpp)
target_link_libraries(imu_driver ${catkin_LIBRARIES} ${opensw_LIBRARIES})
set_property(TARGET imu_driver PROPERTY CXX_STANDARD 17)
add_executable(laser_driver src/laser_driver.cpp src/logger.cpp)
target_link_libraries(laser_driver ${catkin_LIBRARIES} ${opensw_LIBRARIES})
set_property(TARGET laser_driver PROPERTY CXX_STANDARD 17)
install(TARGETS imu_driver laser_driver
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
USE_SOURCE_PERMISSIONS
)