forked from prime-slam/deplex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (26 loc) · 1.03 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
cmake_minimum_required(VERSION 3.18.0)
project(deplex LANGUAGES CXX C DESCRIPTION "Library for Depth Plane Extraction")
if (WIN32)
set(BUILD_SHARED_LIBS OFF)
else()
option(BUILD_SHARED_LIBS "Build shared library" ON)
endif()
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No CMAKE_BUILD_TYPE specified, default to Release.")
set(CMAKE_BUILD_TYPE "Release")
endif()
option(BUILD_TESTS "Build C++ unit-tests" ON)
option(BUILD_BENCHMARK "Build algorithm benchmark runner" OFF)
option(BUILD_EXAMPLES "Build C++ examples of deplex usage" ON)
option(BUILD_PYTHON "Build Python bindings" OFF)
option(DEBUG_DEPLEX "Additional verbosity and results by stage" OFF)
option(DEBUG_BENCHMARK "Disable optimizations, enable MSan and ASan" OFF)
option(BENCHMARK_LOGGING "Time logging for each algorithm stage" OFF)
option(EXPERIMENTAL_OPENMP "Enable OpenMP parallelization" OFF)
set(DEPLEX_LIB_DIR ${CMAKE_BINARY_DIR}/lib)
add_subdirectory(external)
add_subdirectory(libs)
add_subdirectory(cpp)
if (${BUILD_EXAMPLES})
add_subdirectory(examples)
endif()