4
4
# We require this to get object library link library support
5
5
cmake_minimum_required (VERSION 3.12)
6
6
7
+ include ("cmake/HunterGate.cmake" )
8
+ HunterGate(
9
+ URL "https://github.com/cpp-pm/hunter/archive/v0.23.300.tar.gz"
10
+ SHA1 "1151d539465d9cdbc880ee30f794864aec11c448"
11
+ )
12
+
7
13
if (POLICY CMP0074)
8
14
# enable find_package(<Package>) to use <Package>_ROOT as a hint
9
15
cmake_policy (SET CMP0074 NEW)
@@ -75,10 +81,10 @@ message(STATUS "Configure ${OPENEXR_PACKAGE_NAME}, library API version: ${OPENEX
75
81
add_subdirectory (src/lib)
76
82
add_subdirectory (src/bin)
77
83
78
- # Tell CMake where to find the OpenEXRConfig.cmake file. Makes it posible to call
84
+ # Tell CMake where to find the OpenEXRConfig.cmake file. Makes it posible to call
79
85
# find_package(OpenEXR) in downstream projects
80
86
set (OpenEXR_DIR "${CMAKE_CURRENT_BINARY_DIR} /cmake" CACHE PATH "" FORCE)
81
- # Add an empty OpenEXRTargets.cmake file for the config to use.
87
+ # Add an empty OpenEXRTargets.cmake file for the config to use.
82
88
# Can be empty since we already defined the targets in add_subdirectory
83
89
file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /cmake/OpenEXRTargets.cmake" "# Dummy file" )
84
90
@@ -91,7 +97,7 @@ endif()
91
97
# upload the results, cmake has builtin support for
92
98
# submitting to CDash, or any server who speaks the
93
99
# same protocol
94
- #
100
+ #
95
101
# These settings will need to be set for your environment,
96
102
# and then a script such as the example in
97
103
#
@@ -102,7 +108,7 @@ endif()
102
108
# cmake -S cmake/SampleCTestScript.cmake
103
109
#
104
110
# [or whatever you name the file you edit]
105
- #
111
+ #
106
112
#set(CTEST_PROJECT_NAME "OpenEXR")
107
113
#set(CTEST_NIGHTLY_START_TIME "01:01:01 UTC")
108
114
#set(CTEST_DROP_METHOD "http") # there are others...
0 commit comments