forked from emanuelev/supereight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
41 lines (28 loc) · 1.22 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
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.18)
include(CheckLanguage)
project(supereight)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -fdiagnostics-color=always -faligned-new")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -Wno-unknown-pragmas -Wno-c99-extensions")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -march=native")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -std=c++14 --expt-relaxed-constexpr -Wall -Wextra -Wno-unknown-pragmas -lineinfo")
find_package(OpenMP)
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
set(CUDA_FOUND ON)
endif()
option(SE_BACKEND_CPU "Build CPU backend" ON)
option(SE_BACKEND_OPENMP "Build OpenMP backend" ${OPENMP_FOUND})
option(SE_BACKEND_CUDA "Build CUDA backend" ${CUDA_FOUND})
option(SE_OPENMP "Build preprocessing and tracking with OpenMP support" ${OPENMP_FOUND})
add_subdirectory(core)
add_subdirectory(shared)
add_subdirectory(tools)
add_subdirectory(tracking)
set(BUILT_BACKENDS "")
add_subdirectory(backend)
# message(STATUS "BUILT_BACKENDS=${BUILT_BACKENDS}")
set(BUILT_LIBS "")
add_subdirectory(denseslam)
# message(STATUS "BUILT_LIBS=${BUILT_LIBS}")
add_subdirectory(apps)