forked from HKUST-Aerial-Robotics/Btraj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (54 loc) · 1.73 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 2.8.3)
project(bezier_planer)
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/sdf_tools)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
nav_msgs
visualization_msgs
quadrotor_msgs
tf
)
find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
set(Eigen3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
catkin_package(
INCLUDE_DIRS include
)
link_directories( ${PROJECT_SOURCE_DIR}/third_party/mosek/lib/mosek8_1 )
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/third_party/mosek/include)
include_directories(${PROJECT_SOURCE_DIR}/third_party/sdf_tools/include)
include_directories(
include
SYSTEM
third_party
${catkin_INCLUDE_DIRS}
${Eigen3_INCLUDE_DIRS}
${PCL_INCLUDE_DIRS}
)
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS} -O3 -Wall") # -Wextra -Werror
add_executable(
b_traj_node
src/b_traj_node.cpp
src/bezier_base.cpp
src/trajectory_generator.cpp
src/a_star.cpp
third_party/fast_methods/console/console.cpp
third_party/fast_methods/fm/fmdata/fmcell.cpp
third_party/fast_methods/ndgridmap/cell.cpp
)
target_link_libraries(b_traj_node ${catkin_LIBRARIES} sdf_tools ${PCL_LIBRARIES} mosek64)
add_executable ( b_traj_server src/traj_server.cpp src/bezier_base.cpp)
target_link_libraries( b_traj_server
${catkin_LIBRARIES}
)
add_executable ( random_forest_sensing src/random_forest_sensing.cpp )
target_link_libraries( random_forest_sensing
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)
add_executable ( odom_generator src/odom_generator.cpp )
target_link_libraries( odom_generator
${catkin_LIBRARIES}
)