-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
93 lines (80 loc) · 1.81 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
cmake_minimum_required(VERSION 3.0.2)
project(md_camera)
find_package(
catkin REQUIRED COMPONENTS
topic_tools
cv_bridge
dynamic_reconfigure
roscpp
sensor_msgs
message_generation
)
find_package(OpenCV REQUIRED)
find_package(Boost REQUIRED)
find_package(yaml-cpp REQUIRED)
add_definitions(-DCONFIG_PATH="${PROJECT_SOURCE_DIR}/params/")
add_definitions(-DRECORD_PATH="${PROJECT_SOURCE_DIR}/record/")
add_service_files(
FILES
GetCameraInfo.srv
)
generate_messages(
DEPENDENCIES
std_msgs
sensor_msgs
)
generate_dynamic_reconfigure_options(
config/Camera.cfg
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES md_camera
# CATKIN_DEPENDS cv_bridge dynamic_reconfigure roscpp sensor_msgs
# DEPENDS system_lib
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${YAML_CPP_INCLUDE_DIR}
${OpenCV_INCLUDE_DIR}
${Boost_INCLUDE_DIR}
)
add_executable(
${PROJECT_NAME}_node
src/main.cpp
src/MDCamera.cpp
src/resolution.cpp
src/rosCamera.cpp
src/cameraMatrix.cpp
src/LockFrame.cpp
src/Recorder.cpp
src/TopicRecorder.cpp
)
add_executable(
video_pub_node
src/videoPubNode.cpp
src/cameraMatrix.cpp
src/TopicRecorder.cpp
src/Player.cpp
)
add_dependencies(
${PROJECT_NAME}_node
md_camera_gencpp
)
add_dependencies(
video_pub_node
md_camera_gencpp
)
target_link_libraries(
${PROJECT_NAME}_node
${catkin_LIBRARIES}
${OpenCV_LIBRAIRES}
${YAML_CPP_LIBRARIES}
MVSDK
)
target_link_libraries(
video_pub_node
${catkin_LIBRARIES}
${OpenCV_LIBRAIRES}
${YAML_CPP_LIBRARIES}
)