-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
64 lines (52 loc) · 1.39 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
cmake_minimum_required(VERSION 2.8.3)
project(shape_detector)
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
image_view
)
find_package(OpenCV REQUIRED)
################################################
## Declare ROS messages, services and actions ##
################################################
###################################
## catkin specific configuration ##
###################################
catkin_package()
###########
## Build ##
###########
## Specify additional locations of header files
include_directories(${catkin_INCLUDE_DIRS})
## Declare a cpp executable and specify libraries to link a library or executable target against
add_executable(shape_detector src/shape_detector_video.cpp
src/feature.h
src/feature.cpp
src/geometry.h
src/geometry.cpp)
target_link_libraries(shape_detector
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
)
add_executable(shape_detector_image
src/shape_detector_image.cpp
src/feature.h
src/feature.cpp
src/geometry.h
src/geometry.cpp)
target_link_libraries(shape_detector_image
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
)
add_executable(take_image src/take_image.cpp)
target_link_libraries(take_image
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
)
#############
## Install ##
#############
#############
## Testing ##
#############