-
Notifications
You must be signed in to change notification settings - Fork 55
/
CMakeLists.txt
46 lines (38 loc) · 1.1 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
42
43
44
45
46
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
set(CMAKE_BUILD_TYPE Release)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules")
project(xrslam-superbuild)
if(NOT IOS)
set(XRPrimer_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../xrprimer/install/lib/cmake")
else()
set(XRPrimer_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../xrprimer/install/ios/lib/cmake")
endif()
find_package(XRPrimer REQUIRED)
include(SuperBuildDepends)
option(XRSLAM_DEBUG "..." ON)
option(XRSLAM_ENABLE_DEBUG_INSPECTION "..." ON)
option(XRSLAM_ENABLE_THREADING "..." OFF)
option(XRSLAM_PC_HEADLESS_ONLY "..." OFF)
option(XRSLAM_IOS "..." OFF)
option(XRSLAM_TEST "..." OFF)
if(IOS)
set(XRSLAM_IOS ON)
set(XRSLAM_ENABLE_THREADING ON)
#set(XRSLAM_ENABLE_DEBUG_INSPECTION OFF CACHE BOOL "..." FORCE)
endif()
if(NOT IOS)
set(XRSLAM_PC ON)
endif()
add_subdirectory(xrslam)
add_subdirectory(xrslam-extra)
add_subdirectory(xrslam-interface)
add_subdirectory(xrslam-localization)
if(XRSLAM_PC)
add_subdirectory(xrslam-pc)
endif()
if(XRSLAM_IOS)
add_subdirectory(xrslam-ios)
endif()
if(XRSLAM_TEST)
add_subdirectory(xrslam-test)
endif()