-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
65 lines (56 loc) · 1.24 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
cmake_minimum_required(VERSION 3.0.2)
project(mvs_ros_pkg)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++14)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
roscpp
rospy
sensor_msgs
std_msgs
rosbag
)
find_package(OpenCV)
find_package(PCL REQUIRED)
catkin_package(
CATKIN_DEPENDS roscpp rospy std_msgs
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
link_directories(
${catkin_LIB_DIRS}
lib
)
add_executable(grabImg src/grab.cpp)
add_executable(grabImgWithTrigger src/grab_trigger.cpp)
add_executable(Trigger_Image src/Trigger_Image.cpp)
add_executable(parse_type_time src/parse_type.cpp)
add_executable(parse_topic_time src/parse_topic.cpp)
target_link_libraries(
grabImg
${catkin_LIBRARIES}
${OpenCV_LIBS}
-lMvCameraControl
-lpthread
)
target_link_libraries(
grabImgWithTrigger
${catkin_LIBRARIES}
${OpenCV_LIBS}
-lMvCameraControl
-lpthread
)
target_link_libraries(
Trigger_Image
${catkin_LIBRARIES}
${OpenCV_LIBS}
-lMvCameraControl
-lpthread
)
target_link_libraries(parse_type_time ${catkin_LIBRARIES} ${PCL_LIBRARIES})
target_link_libraries(parse_topic_time ${catkin_LIBRARIES} ${PCL_LIBRARIES})