2015-11-11 18:25:26 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
project(ODM-SuperBuild)
|
|
|
|
|
|
|
|
# Path to additional CMake modules
|
2015-11-13 08:25:41 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
2015-11-11 18:25:26 +00:00
|
|
|
|
|
|
|
include(ExternalProject)
|
2015-11-11 23:10:41 +00:00
|
|
|
include(ExternalProject-Setup)
|
2015-11-11 18:25:26 +00:00
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
# Setup SuperBuild root location
|
|
|
|
set(SB_ROOT_DIR ${CMAKE_SOURCE_DIR})
|
|
|
|
|
2015-11-11 18:25:26 +00:00
|
|
|
# Setup location where source tar-balls are downloaded
|
2015-11-13 08:25:41 +00:00
|
|
|
set(SB_DOWNLOAD_DIR "${CMAKE_SOURCE_DIR}/download"
|
2015-11-12 12:10:20 +00:00
|
|
|
CACHE PATH "Location where source tar-balls are (to be) downloaded.")
|
2015-11-13 08:25:41 +00:00
|
|
|
mark_as_advanced(SB_DOWNLOAD_DIR)
|
|
|
|
|
|
|
|
message(STATUS "SuperBuild files will be downloaded to: ${SB_DOWNLOAD_DIR}")
|
|
|
|
|
2015-11-12 12:10:20 +00:00
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
# Setup location where source tar-balls are located
|
|
|
|
set(SB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/src"
|
|
|
|
CACHE PATH "Location where source tar-balls are (will be).")
|
|
|
|
mark_as_advanced(SB_SOURCE_DIR)
|
2015-11-11 18:25:26 +00:00
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
message(STATUS "SuperBuild source files will be extracted to: ${SB_SOURCE_DIR}")
|
2015-11-12 12:10:20 +00:00
|
|
|
|
2015-11-11 18:25:26 +00:00
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
# Setup location where source tar-balls are located
|
|
|
|
set(SB_INSTALL_DIR "${CMAKE_SOURCE_DIR}/install"
|
|
|
|
CACHE PATH "Location where source tar-balls are (will be) installed.")
|
|
|
|
mark_as_advanced(SB_SOURCE_DIR)
|
2015-11-11 18:25:26 +00:00
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
message(STATUS "SuperBuild source files will be installed to: ${SB_INSTALL_DIR}")
|
2015-11-12 12:10:20 +00:00
|
|
|
|
2015-11-11 18:25:26 +00:00
|
|
|
|
|
|
|
#############################
|
|
|
|
# Download third party libs #
|
|
|
|
#############################
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------
|
|
|
|
# OpenCV
|
|
|
|
#
|
2015-11-11 23:10:41 +00:00
|
|
|
set(ODM_OpenCV_Version 2.4.11)
|
|
|
|
option(ODM_BUILD_OpenCV "Force to build OpenCV library" OFF)
|
2015-11-11 18:25:26 +00:00
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
#SETUP_EXTERNAL_PROJECT(OpenCV ${ODM_OpenCV_Version} ${ODM_BUILD_OpenCV})
|
2015-11-11 18:25:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------
|
|
|
|
# Point Cloud Library (PCL)
|
|
|
|
#
|
2015-11-11 23:10:41 +00:00
|
|
|
set(ODM_PCL_Version 1.7.2)
|
|
|
|
option(ODM_BUILD_PCL "Force to build PCL library" OFF)
|
2015-11-11 18:25:26 +00:00
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
#SETUP_EXTERNAL_PROJECT(PCL ${ODM_PCL_Version} ${ODM_BUILD_PCL})
|
2015-11-11 18:25:26 +00:00
|
|
|
|
2015-11-11 23:10:41 +00:00
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------
|
|
|
|
# Ceres Solver
|
|
|
|
#
|
|
|
|
|
|
|
|
set(ODM_Ceres_Version 1.10.0)
|
|
|
|
option(ODM_BUILD_Ceres "Force to build Ceres library" OFF)
|
|
|
|
|
2015-11-12 12:10:37 +00:00
|
|
|
SETUP_EXTERNAL_PROJECT(Ceres ${ODM_Ceres_Version} ${ODM_BUILD_Ceres})
|
|
|
|
|
|
|
|
|
|
|
|
# ---------------------------------------------------------------------------------------------
|
|
|
|
# Open Structure from Motion (OpenSfM)
|
|
|
|
#
|
|
|
|
|
2015-11-13 08:25:41 +00:00
|
|
|
#SETUP_EXTERNAL_PROJECT_CUSTOM(OpenSfM)
|