-
Notifications
You must be signed in to change notification settings - Fork 241
/
CMakeLists.txt
45 lines (31 loc) · 1012 Bytes
/
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
cmake_minimum_required(VERSION 3.21)
project(chhRobotics_CPP)
set(CMAKE_CXX_STANDARD 14)
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
#include(GNUInstallDirs)
set(PACKAGE_NAME chhRobotics_CPP)
# Library target
add_library(chhRobotics_CPP INTERFACE)
# TODO: Use `Development.Embed` component when requiring cmake >= 3.18
find_package(Python3 COMPONENTS Interpreter Development REQUIRED)
target_link_libraries(chhRobotics_CPP INTERFACE
Python3::Python
Python3::Module
)
find_package(Python3 COMPONENTS NumPy)
if(Python3_NumPy_FOUND)
target_link_libraries(chhRobotics_CPP INTERFACE
Python3::NumPy
)
else()
target_compile_definitions(chhRobotics_CPP INTERFACE WITHOUT_NUMPY)
endif()
install(
TARGETS chhRobotics_CPP
EXPORT install_targets
)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE chhRobotics_CPP)
add_subdirectory(PathTracking bin)
add_subdirectory(PathPlanning bin_planning)