-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
62 lines (49 loc) · 1.82 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
cmake_minimum_required(VERSION 2.8.3)
project(drix_helm)
set(CMAKE_CXX_STANDARD 14)
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
geographic_msgs
project11_msgs
cortix_msgs
drix_msgs
mdt_msgs
roscpp
rosbag
project11
project11_msgs
geographic_visualization_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES asv_helm
CATKIN_DEPENDS geometry_msgs roscpp project11 project11_msgs mdt_msgs
# DEPENDS system_lib
)
include_directories(
# include
${catkin_INCLUDE_DIRS}
)
add_executable(${PROJECT_NAME}_node src/drix_helm_node.cpp)
add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_dependencies(${PROJECT_NAME}_node project11_msgs_gencpp drix_msgs_gencpp mdt_msgs_gencpp)
target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
)
add_executable(ais_to_udp src/ais_to_udp.cpp)
add_dependencies(ais_to_udp ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_dependencies(ais_to_udp project11_msgs_gencpp drix_msgs_gencpp mdt_msgs_gencpp)
target_link_libraries(ais_to_udp ${catkin_LIBRARIES})
add_executable(range_to_mothership src/range_to_mothership.cpp)
add_dependencies(range_to_mothership ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_dependencies(range_to_mothership mdt_msgs_gencpp)
target_link_libraries(range_to_mothership ${catkin_LIBRARIES})
add_executable(range_to_drix src/range_to_drix.cpp)
add_dependencies(range_to_drix ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_dependencies(range_to_drix mdt_msgs_gencpp)
target_link_libraries(range_to_drix ${catkin_LIBRARIES})
install(TARGETS ${PROJECT_NAME}_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)