-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
62 lines (53 loc) · 1.3 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
cmake_minimum_required(VERSION 3.1.0)
project(darknet_actions)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
actionlib_msgs
actionlib
darknet_action_msgs
)
find_package(Boost REQUIRED COMPONENTS system)
set (CMAKE_CXX_STANDARD 11)
## Generate added messages and services with any dependencies listed here
generate_messages(
DEPENDENCIES
std_msgs
actionlib_msgs
)
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES darknet_actions
CATKIN_DEPENDS roscpp rospy std_msgs actionlib_msgs
# DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
# include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
add_executable(obj_detection_server src/obj_detection_server.cpp)
#add_executable(obj_detection_client src/obj_detection_client.cpp)
target_link_libraries(
obj_detection_server
${catkin_LIBRARIES}
)
#target_link_libraries(
# obj_detection_client
# ${catkin_LIBRARIES}
#)
add_dependencies(
obj_detection_server
#obj_detection_client
${darknet_actions_EXPORTED_TARGETS}
)
install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp"
)