-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
33 lines (26 loc) · 1.29 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
cmake_minimum_required(VERSION 3.0.0)
project(optimizer VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_BUILD_TYPE Debug)
find_package(Eigen3 REQUIRED)
find_package(osqp REQUIRED)
find_package(OsqpEigen REQUIRED)
find_package(Python3 COMPONENTS Development NumPy)
include_directories(${EIGEN3_INCLUDE_DIRS})
add_executable(${PROJECT_NAME} src/main.cpp
src/reference_path_impl.cpp
src/reference_path.cpp
src/tension_smoother_2.cpp
tools/tools.cpp
tools/spline.cpp
tinyspline_ros/src/tinyspline_ros/tinysplinecpp.cpp
tinyspline_ros/src/tinyspline_ros/tinyspline.c
)
target_link_libraries(${PROJECT_NAME} osqp::osqp
OsqpEigen::OsqpEigen
Python3::Python
Python3::NumPy)
target_include_directories(${PROJECT_NAME} PUBLIC include
${PROJECT_SOURCE_DIR})
target_include_directories(${PROJECT_NAME} PRIVATE ${Python3_INCLUDE_DIRS}
${Python3_NumPy_INCLUDE_DIRS})