mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 23:22:20 +02:00
21 lines
808 B
CMake
21 lines
808 B
CMake
#
|
|
# Copyright 2018 High Fidelity, Inc.
|
|
# Created by Sam Gondelman on 5/2/2018
|
|
#
|
|
# 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_ETC2COMP)
|
|
if (ANDROID)
|
|
set(INSTALL_DIR ${HIFI_ANDROID_PRECOMPILED}/etc2comp)
|
|
set(ETC2COMP_INCLUDE_DIRS "${INSTALL_DIR}/include" "${INSTALL_DIR}/include/Etc" "${INSTALL_DIR}/include/EtcCodec")
|
|
set(ETC2COMP_LIBRARY_DEBUG ${INSTALL_DIR}/lib/libEtcLib.a)
|
|
set(ETC2COMP_LIBRARY_RELEASE ${INSTALL_DIR}/lib/libEtcLib.a)
|
|
target_include_directories(${TARGET_NAME} PRIVATE ${ETC2COMP_INCLUDE_DIRS})
|
|
else()
|
|
find_package(etc2comp REQUIRED)
|
|
endif()
|
|
|
|
target_link_libraries(${TARGET_NAME} etc2comp::etc2comp)
|
|
endmacro()
|
|
|