-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
43 lines (37 loc) · 944 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
cmake_minimum_required(VERSION 3.5)
project(mppi)
find_package(PythonLibs REQUIRED)
find_package (Eigen3 REQUIRED NO_MODULE)
find_package(OpenMP REQUIRED)
include_directories(
mppi/
model/
EigenRand/
${EIGEN3_INCLUDE_DIRS}
# matplotlibcpp/
${PYTHON_INCLUDE_DIRS}
)
if (quadrotor)
set(COMMON_SOURCES
src/quadrotor/bi_mppi.cpp
src/quadrotor/mppi.cpp
src/quadrotor/log_mppi.cpp
src/quadrotor/cluster_mppi.cpp
)
else()
set(COMMON_SOURCES
src/wmrobot/bi_mppi.cpp
src/wmrobot/mppi.cpp
src/wmrobot/log_mppi.cpp
src/wmrobot/cluster_mppi.cpp
)
endif()
foreach(SRC ${COMMON_SOURCES})
get_filename_component(EXE_NAME ${SRC} NAME_WE)
add_executable(${EXE_NAME} ${SRC})
target_compile_options(${EXE_NAME} PRIVATE -O3)
target_link_libraries(${EXE_NAME}
${PYTHON_LIBRARIES}
OpenMP::OpenMP_CXX
)
endforeach()