-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
57 lines (45 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
cmake_minimum_required(VERSION 2.8.3)
project(rosplan_interface_prediction)
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
std_srvs
rosplan_knowledge_msgs
rosplan_dependencies
)
find_package(FLEX REQUIRED)
find_package(Boost REQUIRED COMPONENTS
filesystem
)
###################################
## catkin specific configuration ##
###################################
## Declare things to be passed to dependent projects
catkin_package(
LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS roscpp rospy std_msgs std_srvs rosplan_knowledge_msgs
DEPENDS
)
###########
## Build ##
###########
## include_directories(include)
include_directories(include)
include_directories(${catkin_INCLUDE_DIRS})
## Declare cpp executables
add_executable(rpprediction src/rpprediction.cpp)
add_dependencies(rpprediction ${catkin_EXPORTED_TARGETS})
## Specify libraries against which to link a library or executable target
target_link_libraries(rpprediction ${catkin_LIBRARIES})
#############
## Install ##
#############
install(TARGETS rpprediction
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)