mirror of
https://github.com/overte-org/overte.git
synced 2025-05-28 01:50:25 +02:00
20 lines
541 B
CMake
20 lines
541 B
CMake
#
|
|
# Copyright 2015 High Fidelity, Inc.
|
|
# Created by Olivier Prat on 2019/03/26
|
|
#
|
|
# Distributed under the Apache License, Version 2.0.
|
|
# See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
#
|
|
macro(TARGET_OPENEXR)
|
|
|
|
if (NOT ANDROID)
|
|
# using VCPKG for OPENEXR
|
|
find_package(OpenEXR REQUIRED)
|
|
|
|
include_directories(SYSTEM "${OPENEXR_INCLUDE_DIRS}")
|
|
target_link_libraries(${TARGET_NAME} ${OPENEXR_LIBRARIES})
|
|
target_compile_definitions(${TARGET_NAME} PUBLIC OPENEXR_DLL)
|
|
endif()
|
|
|
|
endmacro()
|
|
|