Skip to content

Commit

Permalink
Merge branch 'develop' into master (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcseacave authored Feb 17, 2020
1 parent b55fa03 commit 304bb3c
Show file tree
Hide file tree
Showing 28 changed files with 4,536 additions and 263 deletions.
16 changes: 12 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
########################################################################
#
# Project-wide settings
CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0)
CMAKE_MINIMUM_REQUIRED(VERSION 3.8.0)
if(POLICY CMP0011)
cmake_policy(SET CMP0011 NEW)
endif()
if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

# Name of the project.
#
Expand All @@ -13,8 +19,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0)
PROJECT(OpenMVS)

set(OpenMVS_MAJOR_VERSION 1)
set(OpenMVS_MINOR_VERSION 0)
set(OpenMVS_PATCH_VERSION 1)
set(OpenMVS_MINOR_VERSION 1)
set(OpenMVS_PATCH_VERSION 0)
set(OpenMVS_VERSION ${OpenMVS_MAJOR_VERSION}.${OpenMVS_MINOR_VERSION}.${OpenMVS_PATCH_VERSION})

# Find dependencies:
Expand All @@ -27,7 +33,6 @@ endif()
SET(COTIRE_INTDIR "cotire")

# Define helper functions and macros.
cmake_policy(SET CMP0011 OLD)
INCLUDE(build/Utils.cmake)
if(ENABLE_PRECOMPILED_HEADERS)
INCLUDE(build/Cotire.cmake)
Expand Down Expand Up @@ -75,6 +80,9 @@ if(OpenMVS_USE_OPENMP)
endif()

if(OpenMVS_USE_OPENGL)
if(POLICY CMP0072)
cmake_policy(SET CMP0072 NEW)
endif()
FIND_PACKAGE(OpenGL)
if(OPENGL_FOUND)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
Expand Down
Loading

0 comments on commit 304bb3c

Please sign in to comment.