-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (33 loc) · 1.35 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
cmake_minimum_required(VERSION 3.26)
project(ControlSystem)
set (CMAKE_CXX_STANDARD 17)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/..)
set (CMAKE_EXPORT_COMPILE_COMMANDS 1)
# plotting libary
find_package(Matplot++ REQUIRED)
# Superior 2D Plotter
include_directories(/opt/homebrew/lib/python3.11/site-packages/numpy/core/include)
find_library(PYTHON_LIB
NAMES libpython3.11.dylib
PATHS /opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib
NO_DEFAULT_PATH)
# source epigraph (submodule)
set(ENABLE_ECOS TRUE)
# ODE library
set(BUILD_ODE_LIB ON CACHE BOOL "Build as a library" FORCE)
add_subdirectory(ODESolver)
# Sensor library
set(BUILD_SENS_LIB ON CACHE BOOL "Build as a library" FORCE)
add_subdirectory(Sensor)
# Sensor library
set(BUILD_EST_LIB ON CACHE BOOL "Build as a library" FORCE)
add_subdirectory(StateEstimator)
# Trajectory library
set(BUILD_TRAJ_LIB ON CACHE BOOL "Build as a library" FORCE)
add_subdirectory(TrajectoryGenerator)
add_executable(example.out landing_simulation.cpp plant.cpp control_system.cpp)
target_link_libraries(example.out Matplot++::matplot)
target_link_libraries(example.out odesolver_lib)
target_link_libraries(example.out sensor_lib)
target_link_libraries(example.out stateestimator_lib)
target_link_libraries(example.out trajectorygenerator_lib)