forked from leo-drive/dmu_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
58 lines (43 loc) · 1.24 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
cmake_minimum_required(VERSION 2.8.3)
project(dmu_ros)
add_compile_options(-std=c++0x)
find_package(catkin REQUIRED COMPONENTS
sensor_msgs
roscpp
tf
message_generation
)
add_message_files(FILES
DMURaw.msg
DMUCounter.msg
)
generate_messages(DEPENDENCIES
geometry_msgs
sensor_msgs
)
catkin_package(CATKIN_DEPENDS message_runtime sensor_msgs)
###########
## Build ##
###########
include_directories(
include
${catkin_INCLUDE_DIRS})
add_executable(dmu_node src/dmu_node.cpp
src/DMU.cpp
include/DMU.h)
target_link_libraries(dmu_node ${catkin_LIBRARIES})
add_dependencies(dmu_node
${catkin_EXPORTED_TARGETS}
${PROJECT_NAME}_generate_messages_cpp
)
add_executable(simulation_node src/simulation_node.cpp)
target_link_libraries(simulation_node ${catkin_LIBRARIES})
add_executable(delta_computations src/delta_computations.cpp)
target_link_libraries(delta_computations ${catkin_LIBRARIES})
#############
## Install ##
#############
install(TARGETS dmu_node simulation_node
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})