forked from facebookresearch/Replica-Dataset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
27 lines (20 loc) · 851 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
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
cmake_minimum_required(VERSION 2.6.0)
project(Replica)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake/")
set(THIRD_PARTY "${CMAKE_CURRENT_LIST_DIR}/3rdparty/")
find_package(Eigen3 NO_MODULE)
if(NOT ${Eigen3_FOUND})
message(STATUS "Using 3rd party Eigen3")
set(Eigen_INCLUDE_DIRS "${THIRD_PARTY}/eigen")
endif()
# use system Pangolin if available
find_package(Pangolin)
if(NOT ${Pangolin_FOUND})
message(STATUS "Using 3rd party Pangolin")
set(Pangolin_INCLUDE_DIRS "${THIRD_PARTY}/Pangolin/build/src/include")
list(APPEND Pangolin_INCLUDE_DIRS "${THIRD_PARTY}/Pangolin/include")
set(Pangolin_LIBRARIES "${THIRD_PARTY}/Pangolin/build/src/libpangolin.so")
endif()
find_package(dl REQUIRED)
add_subdirectory("./ReplicaSDK")