forked from PuYuuu/CppRobotics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (34 loc) · 1.12 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
cmake_minimum_required(VERSION 3.10)
project(CppRobotics)
set(CMAKE_BUILD_TYPE "Release")
# set(CMAKE_BUILD_TYPE "-O2")
set(CMAKE_CXX_FLAGS "-std=c++17")
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/../bin)
add_library(matplotlib_cpp INTERFACE)
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
target_link_libraries(matplotlib_cpp INTERFACE
Python3::Python
Python3::Module
)
find_package(Python3 COMPONENTS NumPy)
if(Python3_NumPy_FOUND)
target_link_libraries(matplotlib_cpp INTERFACE Python3::NumPy)
else()
target_compile_definitions(matplotlib_cpp INTERFACE WITHOUT_NUMPY)
endif()
find_package(fmt REQUIRED)
find_package(OsqpEigen REQUIRED)
include_directories( "/usr/include/eigen3")
include_directories(${CMAKE_CURRENT_LIST_DIR})
include_directories(
${PROJECT_SOURCE_DIR}/utils/include
${PROJECT_SOURCE_DIR}/Control/include
${PROJECT_SOURCE_DIR}/PathPlanning/include
${PROJECT_SOURCE_DIR}/PathTracking/include
${PROJECT_SOURCE_DIR}/Perception/include
)
add_subdirectory(utils)
add_subdirectory(Control)
add_subdirectory(PathPlanning)
add_subdirectory(PathTracking)
add_subdirectory(Perception)