Skip to content

Commit 04aaa8e

Browse files
committed
add openexr to cmake
1 parent cb9f8f2 commit 04aaa8e

File tree

5 files changed

+477
-4
lines changed

5 files changed

+477
-4
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ include(ojph_version.cmake)
77
project (openjph VERSION ${OPENJPH_VERSION} DESCRIPTION "Open source implementation of JPH" LANGUAGES CXX)
88
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
99

10+
set(CMAKE_MODULE_PATH
11+
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
12+
${CMAKE_MODULE_PATH}
13+
)
14+
1015
################################################################################################
1116
# Building OpenJPH
1217
################################################################################################
@@ -22,6 +27,7 @@ message(STATUS "CPU Architecture is ${OJPH_TARGET_ARCH}")
2227
## options
2328
option(BUILD_SHARED_LIBS "Shared Libraries" ON)
2429
option(OJPH_ENABLE_TIFF_SUPPORT "Enables input and output support for TIFF files" ON)
30+
option(OJPH_ENABLE_OPENEXR_SUPPORT "Enables input and output support for OpenEXR files" ON)
2531
option(OJPH_BUILD_TESTS "Enables building test code" OFF)
2632
option(OJPH_BUILD_EXECUTABLES "Enables building command line executables" ON)
2733
option(OJPH_BUILD_STREAM_EXPAND "Enables building ojph_stream_expand executable" OFF)
@@ -66,6 +72,7 @@ endif()
6672
if(EMSCRIPTEN)
6773
set(BUILD_SHARED_LIBS OFF)
6874
set(OJPH_ENABLE_TIFF_SUPPORT OFF)
75+
set(OJPH_ENABLE_OPENEXR_SUPPORT OFF)
6976
set(OJPH_BUILD_STREAM_EXPAND OFF)
7077
set(OJPH_DISABLE_SIMD ON)
7178
endif()

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ENV DEBIAN_FRONTEND noninteractive
99
RUN apt-get -y install cmake
1010
RUN apt-get -y install g++
1111
RUN apt-get -y install libtiff-dev
12-
RUN apt-get -y install openexr
12+
RUN apt-get -y install libopenexr-dev
1313

1414
# install development debugging tools
1515
RUN apt-get -y install valgrind

build/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)