mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
28 lines
833 B
CMake
28 lines
833 B
CMake
# Copyright 2013-2019, High Fidelity, Inc.
|
|
# Copyright 2022-2023 Overte e.V.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set(TARGET_NAME audio-client)
|
|
if (ANDROID)
|
|
set(PLATFORM_QT_COMPONENTS AndroidExtras)
|
|
endif ()
|
|
setup_hifi_library(Network Multimedia ${PLATFORM_QT_COMPONENTS})
|
|
link_hifi_libraries(audio plugins)
|
|
include_hifi_library_headers(shared)
|
|
include_hifi_library_headers(networking)
|
|
include_hifi_library_headers(script-engine)
|
|
|
|
if (ANDROID)
|
|
else ()
|
|
target_webrtc()
|
|
endif ()
|
|
|
|
# append audio includes to our list of includes to bubble
|
|
target_include_directories(${TARGET_NAME} PUBLIC "${HIFI_LIBRARY_DIR}/audio/src")
|
|
|
|
# have CMake grab externals for us
|
|
if (APPLE)
|
|
find_library(CoreAudio CoreAudio)
|
|
find_library(CoreFoundation CoreFoundation)
|
|
target_link_libraries(${TARGET_NAME} ${CoreAudio} ${CoreFoundation})
|
|
endif ()
|