-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
74 lines (56 loc) · 1.33 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
cmake_minimum_required(VERSION 2.8.3)
project(perception_classifiers)
find_package(OpenCV)
find_package(catkin REQUIRED
COMPONENTS
roscpp
std_msgs
bwi_kr_execution
cv_bridge
message_generation
)
find_package(Boost REQUIRED COMPONENTS filesystem)
add_service_files(
FILES
getFreeClassifierID.srv
loadClassifiers.srv
runClassifier.srv
trainClassifier.srv
FetchFeatures.srv
FetchAllFeatures.srv
startDialog.srv
getSay.srv
getPoint.srv
)
add_message_files(
FILES
Observations.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
CATKIN_DEPENDS
roscpp
std_msgs
)
###########
## Build ##
###########
include_directories(
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS})
add_executable(classifier_services src/classifier_services.cpp)
add_executable(fetch_features src/fetch_features_service.cpp)
target_link_libraries(classifier_services
${catkin_LIBRARIES}
${OpenCV_LIBRARIES})
target_link_libraries(fetch_features ${catkin_LIBRARIES} ${BOOST_LIBRARIES})
add_dependencies(classifier_services perception_classifiers)
add_dependencies(fetch_features services_generate_messages_cpp)
#############
## Install ##
#############
# install(TARGETS perception_classifiers
# RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})