-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (57 loc) · 1.71 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
cmake_minimum_required(VERSION 3.0.2)
project(simple_planning_interface)
find_package(catkin REQUIRED COMPONENTS interactive_markers roscpp visualization_msgs tf)
find_package(Eigen3 QUIET)
if(NOT EIGEN3_FOUND)
# ROS == Indigo.
find_package(cmake_modules REQUIRED)
find_package(Eigen REQUIRED)
set(EIGEN3_INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS})
else()
# ROS > Indigo.
set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
endif()
###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
CATKIN_DEPENDS interactive_markers roscpp visualization_msgs tf
DEPENDS Eigen3
)
###########
## Build ##
###########
include_directories(include
${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
add_executable(basic_interface
src/basic_interface.cpp
src/basic_interface_node.cpp
)
target_link_libraries(basic_interface
${catkin_LIBRARIES}
)
add_executable(racer_interface
src/racer_interface.cpp
src/racer_interface_node.cpp
)
target_link_libraries(racer_interface
${catkin_LIBRARIES}
)
#############
## Install ##
#############
## Mark executables and/or libraries for installation
install(TARGETS
basic_interface
racer_interface
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)