-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
69 lines (55 loc) · 1.46 KB
/
CMakeLists.txt
File metadata and controls
69 lines (55 loc) · 1.46 KB
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
68
69
cmake_minimum_required(VERSION 3.15.0)
project(siyi_cam_executor_plugin)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CATKIN_DEPENDENCIES
roscpp
cmake_modules
pluginlib
iroc_mission_handler
mrs_lib
siyi_cam_driver
)
set(LIBRARIES
IROCMissionHandler_SiyiCamExecutorPlugin
)
find_package(catkin REQUIRED COMPONENTS
${CATKIN_DEPENDENCIES}
)
add_definitions(-Wall)
add_definitions(-Wextra)
add_definitions(-Wpedantic)
catkin_package(
LIBRARIES ${LIBRARIES}
CATKIN_DEPENDS ${CATKIN_DEPENDENCIES}
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_library(IROCMissionHandler_SiyiCamExecutorPlugin
src/gimbal_plugin.cpp
src/camera_plugin.cpp
)
add_dependencies(IROCMissionHandler_SiyiCamExecutorPlugin
${${PROJECT_NAME}_EXPORTED_TARGETS}
${catkin_EXPORTED_TARGETS}
)
target_link_libraries(IROCMissionHandler_SiyiCamExecutorPlugin
${catkin_LIBRARIES}
${Eigen_LIBRARIES}
)
## --------------------------------------------------------------
## | Install |
## --------------------------------------------------------------
install(TARGETS ${LIBRARIES}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)
install(DIRECTORY config
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
install(FILES plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)