-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
67 lines (54 loc) · 1.55 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
61
62
63
64
65
66
67
cmake_minimum_required(VERSION 3.0.2)
project(urg_stamped)
set(CATKIN_DEPENDS
roscpp
sensor_msgs
std_msgs
)
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS
${CATKIN_DEPENDS}
message_generation
)
add_message_files(FILES Status.msg)
generate_messages(DEPENDENCIES std_msgs)
catkin_package(CATKIN_DEPENDS
${CATKIN_DEPENDS}
message_runtime
)
find_package(Boost 1.53 REQUIRED system chrono thread)
add_compile_options(-std=c++14)
include_directories(${catkin_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} include)
add_executable(urg_stamped
src/device_state_estimator.cpp
src/scan_estimator_utm.cpp
src/scan_estimator_ust.cpp
src/clock_estimator_uust1.cpp
src/clock_estimator_uust2.cpp
src/ros_logger.cpp
src/scip2/logger.cpp
src/urg_stamped.cpp
src/urg_stamped_node.cpp
)
target_link_libraries(urg_stamped ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_dependencies(urg_stamped ${urg_stamped_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_executable(urg_sim
src/urg_sim/encode.cpp
src/urg_sim/urg_sim.cpp
src/urg_sim/urg_sim_exec.cpp
)
target_link_libraries(urg_sim ${catkin_LIBRARIES} ${Boost_LIBRARIES})
if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
find_package(rosunit REQUIRED)
find_package(roslint REQUIRED)
set(ROSLINT_CPP_OPTS "--filter=-runtime/references,-build/c++11")
roslint_cpp()
roslint_add_test()
add_subdirectory(test)
endif()
install(TARGETS
urg_stamped
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)