forked from whoenig/uav_trajectories
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (34 loc) · 1.25 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
cmake_minimum_required(VERSION 3.1)
project(uavTrajectoryHelpers)
# Enable C++14 and warnings
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
find_package(Eigen3 REQUIRED NO_MODULE)
find_package(Boost 1.58 REQUIRED COMPONENTS program_options filesystem)
find_package(PkgConfig REQUIRED)
pkg_check_modules(NLPOPT REQUIRED nlopt nlopt_cxx)
# Additional include folders
include_directories(
mav_trajectory_generation/mav_trajectory_generation/include
${EIGEN3_INCLUDE_DIR}
)
add_library(mav_trajectory_generation
mav_trajectory_generation/mav_trajectory_generation/src/motion_defines.cpp
mav_trajectory_generation/mav_trajectory_generation/src/polynomial.cpp
mav_trajectory_generation/mav_trajectory_generation/src/rpoly.cpp
mav_trajectory_generation/mav_trajectory_generation/src/segment.cpp
mav_trajectory_generation/mav_trajectory_generation/src/timing.cpp
mav_trajectory_generation/mav_trajectory_generation/src/trajectory.cpp
mav_trajectory_generation/mav_trajectory_generation/src/vertex.cpp
)
add_executable(genTrajectory
src/genTrajectory.cpp
)
target_link_libraries(genTrajectory
${Boost_LIBRARIES}
mav_trajectory_generation
glog
nlopt
)