-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
executable file
·62 lines (53 loc) · 1.27 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
cmake_minimum_required(VERSION 3.5.0)
set(CMAKE_CXX_FLAGS "-Wswitch -std=c++0x -pthread ${CMAKE_CXX_FLAGS} -Wno-undef -lspdlog")
set(CMAKE_CXX_STANDARD 17)
project(knowrob_ros
DESCRIPTION "A Knowledge Base System for Cognition-enabled Robots")
IF (NOT WIN32)
INCLUDE(FindPkgConfig)
ENDIF ()
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation
actionlib
actionlib_msgs
knowrob
)
find_package(spdlog REQUIRED)
add_message_files(
DIRECTORY msg
FILES
KeyValuePair.msg
GraphQueryMessage.msg
GraphAnswerMessage.msg
EventToken.msg
)
add_action_files(
DIRECTORY action
FILES
AskAll.action
AskOne.action
AskIncremental.action
AskIncrementalNextSolution.action
Tell.action
)
add_service_files(
DIRECTORY srv
FILES
AskIncrementalFinish.srv
)
generate_messages(DEPENDENCIES
std_msgs
actionlib_msgs
)
catkin_package(CATKIN_DEPENDS roscpp roslib knowrob)
include_directories(include ${catkin_INCLUDE_DIRS})
## ROS Interface ###
add_executable(knowrob-ros
src/ROSInterface.cpp
)
add_dependencies(knowrob-ros ${catkin_EXPORTED_TARGETS})
target_link_libraries(knowrob-ros ${catkin_LIBRARIES} spdlog::spdlog)
install(TARGETS knowrob-ros RUNTIME DESTINATION bin)