mirror of
https://github.com/overte-org/overte.git
synced 2025-07-07 00:09:27 +02:00
20 lines
740 B
CMake
20 lines
740 B
CMake
#
|
|
# Created by Bradley Austin Davis on 2017/11/28
|
|
# Copyright 2013-2017 High Fidelity, Inc.
|
|
#
|
|
# 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_POLYVOX)
|
|
if (ANDROID)
|
|
set(INSTALL_DIR ${HIFI_ANDROID_PRECOMPILED}/polyvox)
|
|
set(POLYVOX_INCLUDE_DIRS "${INSTALL_DIR}/include" CACHE STRING INTERNAL)
|
|
set(LIB_DIR ${INSTALL_DIR}/lib)
|
|
list(APPEND POLYVOX_LIBRARIES ${LIB_DIR}/libPolyVoxUtil.so)
|
|
list(APPEND POLYVOX_LIBRARIES ${LIB_DIR}/Release/libPolyVoxCore.so)
|
|
else()
|
|
find_package(polyvox REQUIRED)
|
|
endif()
|
|
target_link_libraries(${TARGET_NAME} polyvox::polyvox)
|
|
endmacro()
|
|
|