forked from erdos-project/frenet_optimal_trajectory_planner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
80 lines (73 loc) · 3.07 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
68
69
70
71
72
73
74
75
76
77
78
79
80
cmake_minimum_required(VERSION 3.10)
project(FrenetOptimalTrajectory)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "-march=native -O3 -Wall")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Eigen3)
if(Eigen3_FOUND)
set(CUSTOM_EIGEN ${EIGEN3_INCLUDE_DIR})
else()
find_package(Eigen)
set(CUSTOM_EIGEN ${EIGEN_INCLUDE_DIR})
endif()
include_directories(.)
include_directories(
${CUSTOM_EIGEN}
)
include_directories("${CMAKE_SOURCE_DIR}/src"
"${CMAKE_SOURCE_DIR}/src/CubicSpline"
"${CMAKE_SOURCE_DIR}/src/Polynomials"
"${CMAKE_SOURCE_DIR}/src/FrenetOptimalTrajectory"
"${CMAKE_SOURCE_DIR}/src/Obstacle"
"${CMAKE_SOURCE_DIR}/src/Car")
add_library(FrenetOptimalTrajectory SHARED
src/main.cpp
src/utils.h
src/Polynomials/QuarticPolynomial.cpp
src/Polynomials/QuarticPolynomial.h
src/Polynomials/QuinticPolynomial.cpp
src/Polynomials/QuinticPolynomial.h
src/CubicSpline/CubicSpline1D.cpp
src/CubicSpline/CubicSpline1D.h
src/CubicSpline/CubicSpline2D.cpp
src/CubicSpline/CubicSpline2D.h
src/FrenetOptimalTrajectory/FrenetOptimalTrajectory.cpp
src/FrenetOptimalTrajectory/FrenetOptimalTrajectory.h
src/FrenetOptimalTrajectory/FrenetPath.cpp
src/FrenetOptimalTrajectory/FrenetPath.h
src/FrenetOptimalTrajectory/fot_wrapper.cpp
src/FrenetOptimalTrajectory/py_cpp_struct.h
src/Obstacle/Obstacle.cpp
src/Obstacle/Obstacle.h
src/Car/Car.cpp
src/Car/Car.h)
add_executable(FrenetOptimalTrajectoryTest
src/main.cpp
src/utils.h
src/Polynomials/QuarticPolynomial.cpp
src/Polynomials/QuarticPolynomial.h
src/Polynomials/QuinticPolynomial.cpp
src/Polynomials/QuinticPolynomial.h
src/CubicSpline/CubicSpline1D.cpp
src/CubicSpline/CubicSpline1D.h
src/CubicSpline/CubicSpline2D.cpp
src/CubicSpline/CubicSpline2D.h
src/FrenetOptimalTrajectory/FrenetOptimalTrajectory.cpp
src/FrenetOptimalTrajectory/FrenetOptimalTrajectory.h
src/FrenetOptimalTrajectory/FrenetPath.cpp
src/FrenetOptimalTrajectory/FrenetPath.h
src/FrenetOptimalTrajectory/fot_wrapper.cpp
src/FrenetOptimalTrajectory/py_cpp_struct.h
src/Obstacle/Obstacle.cpp
src/Obstacle/Obstacle.h
src/Car/Car.cpp
src/Car/Car.h)
target_link_libraries(FrenetOptimalTrajectory Eigen3::Eigen Qt5::Widgets Qt5::Gui)
target_link_libraries(FrenetOptimalTrajectoryTest Eigen3::Eigen Qt5::Widgets Qt5::Gui)