| 1 |
# Copyright (c), ETH Zurich and UNC Chapel Hill. |
| 2 |
# All rights reserved. |
| 3 |
# |
| 4 |
# Redistribution and use in source and binary forms, with or without |
| 5 |
# modification, are permitted provided that the following conditions are met: |
| 6 |
# |
| 7 |
# * Redistributions of source code must retain the above copyright |
| 8 |
# notice, this list of conditions and the following disclaimer. |
| 9 |
# |
| 10 |
# * Redistributions in binary form must reproduce the above copyright |
| 11 |
# notice, this list of conditions and the following disclaimer in the |
| 12 |
# documentation and/or other materials provided with the distribution. |
| 13 |
# |
| 14 |
# * Neither the name of ETH Zurich and UNC Chapel Hill nor the names of |
| 15 |
# its contributors may be used to endorse or promote products derived |
| 16 |
# from this software without specific prior written permission. |
| 17 |
# |
| 18 |
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 |
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 |
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 |
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE |
| 22 |
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 |
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 24 |
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 25 |
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 26 |
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 27 |
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 28 |
# POSSIBILITY OF SUCH DAMAGE. |
| 29 |
|
| 30 |
|
| 31 |
# Find package config for COLMAP library. |
| 32 |
# |
| 33 |
# The following variables are set by this config: |
| 34 |
# |
| 35 |
# COLMAP_FOUND: TRUE if COLMAP is found. |
| 36 |
# COLMAP_VERSION: COLMAP version. |
| 37 |
# |
| 38 |
# The colmap::colmap imported interface target is defined. |
| 39 |
|
| 40 |
@PACKAGE_INIT@ |
| 41 |
|
| 42 |
set(COLMAP_FOUND FALSE) |
| 43 |
|
| 44 |
# Set hints for finding dependency packages. |
| 45 |
|
| 46 |
set(METIS_INCLUDE_DIR_HINTS @METIS_INCLUDE_DIR_HINTS@) |
| 47 |
set(METIS_LIBRARY_DIR_HINTS @METIS_LIBRARY_DIR_HINTS@) |
| 48 |
|
| 49 |
set(GLEW_INCLUDE_DIR_HINTS @GLEW_INCLUDE_DIR_HINTS@) |
| 50 |
set(GLEW_LIBRARY_DIR_HINTS @GLEW_LIBRARY_DIR_HINTS@) |
| 51 |
|
| 52 |
set(GLOG_INCLUDE_DIR_HINTS @GLOG_INCLUDE_DIR_HINTS@) |
| 53 |
set(GLOG_LIBRARY_DIR_HINTS @GLOG_LIBRARY_DIR_HINTS@) |
| 54 |
|
| 55 |
set(CryptoPP_INCLUDE_DIR_HINTS @CryptoPP_INCLUDE_DIR_HINTS@) |
| 56 |
set(CryptoPP_LIBRARY_DIR_HINTS @CryptoPP_LIBRARY_DIR_HINTS@) |
| 57 |
|
| 58 |
# Find dependency packages. |
| 59 |
|
| 60 |
set(TEMP_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}) |
| 61 |
set(CMAKE_MODULE_PATH ${PACKAGE_PREFIX_DIR}/share/colmap/cmake) |
| 62 |
|
| 63 |
# Set the exported variables. |
| 64 |
|
| 65 |
set(COLMAP_FOUND TRUE) |
| 66 |
|
| 67 |
set(COLMAP_VERSION @COLMAP_VERSION@) |
| 68 |
|
| 69 |
set(OPENMP_ENABLED @OPENMP_ENABLED@) |
| 70 |
|
| 71 |
set(CUDA_ENABLED @CUDA_ENABLED@) |
| 72 |
set(CUDA_MIN_VERSION @CUDA_MIN_VERSION@) |
| 73 |
|
| 74 |
set(ONNX_ENABLED @ONNX_ENABLED@) |
| 75 |
|
| 76 |
set(DOWNLOAD_ENABLED @DOWNLOAD_ENABLED@) |
| 77 |
|
| 78 |
set(GUI_ENABLED @GUI_ENABLED@) |
| 79 |
|
| 80 |
set(CGAL_ENABLED @CGAL_ENABLED@) |
| 81 |
|
| 82 |
set(MVS_ENABLED @MVS_ENABLED@) |
| 83 |
|
| 84 |
set(LSD_ENABLED @LSD_ENABLED@) |
| 85 |
|
| 86 |
set(FETCH_POSELIB @FETCH_POSELIB@) |
| 87 |
|
| 88 |
set(FETCH_FAISS @FETCH_FAISS@) |
| 89 |
|
| 90 |
set(FETCH_ONNX FALSE) |
| 91 |
if(@FETCH_ONNX@) |
| 92 |
if(ONNX_ENABLED AND EXISTS ${PACKAGE_PREFIX_DIR}/share/onnxruntime/cmake) |
| 93 |
set(onnxruntime_DIR ${PACKAGE_PREFIX_DIR}/share/onnxruntime/cmake) |
| 94 |
endif() |
| 95 |
set(onnxruntime_INCLUDE_DIR_HINTS ${PACKAGE_PREFIX_DIR}/include CACHE PATH "ONNX Runtime include directory hints") |
| 96 |
set(onnxruntime_LIBRARY_DIR_HINTS ${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_LIBDIR@ CACHE PATH "ONNX Runtime library directory hints") |
| 97 |
endif() |
| 98 |
|
| 99 |
include(${PACKAGE_PREFIX_DIR}/share/colmap/colmap-targets.cmake) |
| 100 |
include(${PACKAGE_PREFIX_DIR}/share/colmap/cmake/FindDependencies.cmake) |
| 101 |
check_required_components(colmap) |
| 102 |
|
| 103 |
# Reset to previous value |
| 104 |
set(CMAKE_MODULE_PATH ${TEMP_CMAKE_MODULE_PATH}) |