2022-04-07 18:46:57 +02:00

68 lines
1.1 KiB
CMake

SET ( ILMIMFUTIL_SRCS
ImfImageChannel.cpp
ImfFlatImageChannel.cpp
ImfDeepImageChannel.cpp
ImfSampleCountChannel.cpp
ImfImageLevel.cpp
ImfFlatImageLevel.cpp
ImfDeepImageLevel.cpp
ImfImage.cpp
ImfFlatImage.cpp
ImfDeepImage.cpp
ImfImageIO.cpp
ImfFlatImageIO.cpp
ImfDeepImageIO.cpp
ImfImageDataWindow.cpp
)
IF(BUILD_SHARED_LIBS)
ADD_DEFINITIONS(-DILMIMF_EXPORTS)
ENDIF()
LINK_DIRECTORIES ( ${CMAKE_CURRENT_BINARY_DIR}/../IlmImf )
ADD_LIBRARY ( IlmImfUtil ${LIB_TYPE}
${ILMIMFUTIL_SRCS}
)
TARGET_LINK_LIBRARIES ( IlmImfUtil
Half
Iex${ILMBASE_LIBSUFFIX}
Imath${ILMBASE_LIBSUFFIX}
IlmThread${ILMBASE_LIBSUFFIX}
IlmImf
${PTHREAD_LIB} ${ZLIB_LIBRARIES}
)
# Libraries
INSTALL ( TARGETS
IlmImfUtil
DESTINATION
${OPENEXR_INSTALL_LIB_DEST}
)
# Headers
INSTALL ( FILES
ImfImageChannel.h
ImfFlatImageChannel.h
ImfDeepImageChannel.h
ImfSampleCountChannel.h
ImfImageLevel.h
ImfFlatImageLevel.h
ImfDeepImageLevel.h
ImfImage.h
ImfFlatImage.h
ImfDeepImage.h
ImfImageIO.h
ImfFlatImageIO.h
ImfDeepImageIO.h
ImfImageDataWindow.h
ImfImageChannelRenaming.h
DESTINATION
${OPENEXR_INSTALL_HEADER_DEST}
)