-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
28 lines (20 loc) · 741 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
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
option(LIB_OPT "Compile shared libraries (ON) or static (OFF)" OFF)
project(Flexible-GJK-and-EPA)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FetchDependency.cmake)
option(GJK_EPA_DIAGNOSTIC "Diagnostic log enabled (ON) or disabled (OFF)" OFF)
option(BUILD_GJK_EPA_SAMPLES "Build the samples showing how to use the package" ON)
option(BUILD_GJK_EPA_TESTS "" OFF)
add_subdirectory(src)
if(BUILD_GJK_EPA_TESTS OR BUILD_GJK_EPA_SAMPLES)
add_subdirectory(utils)
endif()
if(BUILD_GJK_EPA_SAMPLES)
add_subdirectory(samples)
endif()
if(BUILD_GJK_EPA_TESTS)
add_subdirectory(tests)
endif()