-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (28 loc) · 826 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
cmake_minimum_required(VERSION 3.10)
project(Motionpp)
# Options
option(MOTIONPP_BUILD_EXAMPLES "Build MotionPP examples" OFF)
# Set C++ standard
set(CMAKE_CXX_STANDARD 17)
# Posiiton independent code for shared libraries
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# Set Warning Level
if (MSVC)
add_compile_options(/W4)
else()
add_compile_options(-Wall -Wno-unused-parameter -Wextra -pedantic)
endif()
# Add subdirectories
add_subdirectory(external)
if (MOTIONPP_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
# Create Dynamic Library
add_library(${PROJECT_NAME} STATIC
src/cell_based_search.cpp
src/cspace.cpp
src/queue.cpp
src/graph.cpp)
# Linking Libraries
target_include_directories(${PROJECT_NAME} PUBLIC include)
target_link_libraries(${PROJECT_NAME} PUBLIC KDTree obj_openGJK)