Skip to content

Commit f7b9152

Browse files
hjmallonrbsheth
authored andcommitted
Hunterize OpenEXR
1 parent e94d82b commit f7b9152

File tree

3 files changed

+554
-8
lines changed

3 files changed

+554
-8
lines changed

CMakeLists.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
# We require this to get object library link library support
55
cmake_minimum_required(VERSION 3.12)
66

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+
713
if(POLICY CMP0074)
814
# enable find_package(<Package>) to use <Package>_ROOT as a hint
915
cmake_policy(SET CMP0074 NEW)
@@ -75,10 +81,10 @@ message(STATUS "Configure ${OPENEXR_PACKAGE_NAME}, library API version: ${OPENEX
7581
add_subdirectory(src/lib)
7682
add_subdirectory(src/bin)
7783

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
7985
# find_package(OpenEXR) in downstream projects
8086
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.
8288
# Can be empty since we already defined the targets in add_subdirectory
8389
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/cmake/OpenEXRTargets.cmake" "# Dummy file")
8490

@@ -91,7 +97,7 @@ endif()
9197
# upload the results, cmake has builtin support for
9298
# submitting to CDash, or any server who speaks the
9399
# same protocol
94-
#
100+
#
95101
# These settings will need to be set for your environment,
96102
# and then a script such as the example in
97103
#
@@ -102,7 +108,7 @@ endif()
102108
# cmake -S cmake/SampleCTestScript.cmake
103109
#
104110
# [or whatever you name the file you edit]
105-
#
111+
#
106112
#set(CTEST_PROJECT_NAME "OpenEXR")
107113
#set(CTEST_NIGHTLY_START_TIME "01:01:01 UTC")
108114
#set(CTEST_DROP_METHOD "http") # there are others...

0 commit comments

Comments
 (0)