forked from Auterion/mv_bluefox2_camera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·51 lines (41 loc) · 1.22 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
cmake_minimum_required(VERSION 2.8.3)
project(bluefox2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
find_package(catkin REQUIRED COMPONENTS
roscpp nodelet camera_base
mavros_msgs
message_generation
)
find_package(mvIMPACT REQUIRED)
find_package(Boost COMPONENTS program_options REQUIRED)
# dynamic reconfigure
generate_dynamic_reconfigure_options(cfg/Bluefox2Dyn.cfg)
# services
add_service_files(FILES SetExposeSrv.srv)
generate_messages(DEPENDENCIES std_msgs mavros_msgs)
catkin_package(
INCLUDE_DIRS include ${mvIMPACT_INCLUDE_DIRS}
LIBRARIES ${PROJECT_NAME} ${mvIMPACT_LIBRARIES}
CATKIN_DEPENDS message_runtime
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${mvIMPACT_INCLUDE_DIRS}
)
add_subdirectory(src)
# dependencies
add_dependencies(${PROJECT_NAME}
${catkin_EXPORTED_TARGETS}
${PROJECT_NAME}_gencfg
${PROJECT_NAME}_gencpp
${${PROJECT_NAME}_EXPORTED_TARGETS}
)
install(DIRECTORY launch
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
FILES_MATCHING PATTERN "*.launch"
)
install(DIRECTORY ${mvIMPACT_LIBRARY_DIR}
DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)