-
Notifications
You must be signed in to change notification settings - Fork 12
/
CMakeLists.txt
52 lines (41 loc) · 1.09 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
cmake_minimum_required(VERSION 3.5)
project(hk_camera)
set(CMAKE_CXX_STANDARD 11)
find_package(catkin REQUIRED COMPONENTS
roscpp
nodelet
message_generation
dynamic_reconfigure
image_transport
camera_info_manager
rm_msgs
cv_bridge
)
find_package(
OpenCV REQUIRED
)
generate_dynamic_reconfigure_options(
cfg/camera.cfg
)
catkin_package(
LIBRARIES hk_camera
CATKIN_DEPENDS nodelet roscpp dynamic_reconfigure
image_transport camera_info_manager
)
include_directories(
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
include/
./
)
add_library(hk_camera
src/hk_camera.cpp
)
target_link_libraries(hk_camera
libMvCameraControl.so ${catkin_LIBRARIES} ${Opencv_LIBS})
add_dependencies(hk_camera ${PROJECT_NAME}_gencfg)
#add_executable(hk_camera_node
# src/hk_camera_node.cpp)
#add_dependencies(hk_camera_node ${PROJECT_NAME}_gencfg)
#target_link_libraries(hk_camera_node
# libMvCameraControl.so ${catkin_LIBRARIES} ${Opencv_LIBS})