forked from Yamabukiss/rm_detector
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
executable file
·69 lines (57 loc) · 1.41 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
cmake_minimum_required(VERSION 3.0.2)
project(rm_detector)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
dynamic_reconfigure
std_msgs
cv_bridge
nodelet
pluginlib
)
find_package(OpenCV REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(InferenceEngine REQUIRED)
find_package(ngraph REQUIRED)
generate_dynamic_reconfigure_options(
cfg/dynamic.cfg
)
include_directories(
include
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
catkin_package(
INCLUDE_DIRS
include
LIBRARIES
CATKIN_DEPENDS
roscpp
dynamic_reconfigure
std_msgs
cv_bridge
LIBRARIES ${PROJECT_NAME}
)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
## Declare a C++ library
add_library(${PROJECT_NAME} src/detector.cpp)
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${InferenceEngine_LIBRARIES}
${NGRAPH_LIBRARIES}
${OpenCV_LIBS}
)
add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
add_dependencies(${PROJECT_NAME} ${PROJECT_NAME}_gencfg)
target_link_libraries(
${PROJECT_NAME}
${catkin_LIBRARIES}
${InferenceEngine_LIBRARIES}
${NGRAPH_LIBRARIES}
${OpenCV_LIBS}
)