mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 06:28:49 +02:00
35 lines
No EOL
1.2 KiB
CMake
35 lines
No EOL
1.2 KiB
CMake
set(TARGET_NAME audio-client)
|
|
|
|
# use setup_hifi_library macro to setup our project and link appropriate Qt modules
|
|
setup_hifi_library(Network Multimedia)
|
|
|
|
link_hifi_libraries(audio)
|
|
|
|
# append audio includes to our list of includes to bubble
|
|
list(APPEND ${TARGET_NAME}_DEPENDENCY_INCLUDES "${HIFI_LIBRARY_DIR}/audio/src")
|
|
|
|
set(GVERB_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external/gverb")
|
|
|
|
# As Gverb is currently the only reverb library, it's required.
|
|
find_package(Gverb REQUIRED)
|
|
|
|
file(GLOB GVERB_SRCS ${GVERB_SRC_DIRS}/*.c)
|
|
add_library(gverb STATIC ${GVERB_SRCS})
|
|
target_link_libraries(${TARGET_NAME} gverb)
|
|
|
|
# append gverb includes to our list of includes to bubble
|
|
list(APPEND ${TARGET_NAME}_DEPENDENCY_INCLUDES "${GVERB_INCLUDE_DIRS}")
|
|
|
|
# we use libsoxr for resampling
|
|
find_package(Soxr REQUIRED)
|
|
target_link_libraries(${TARGET_NAME} ${SOXR_LIBRARIES})
|
|
include_directories(SYSTEM ${SOXR_INCLUDE_DIRS})
|
|
|
|
if (APPLE)
|
|
find_library(CoreAudio CoreAudio)
|
|
find_library(CoreFoundation CoreFoundation)
|
|
target_link_libraries(${TARGET_NAME} ${CoreAudio} ${CoreFoundation})
|
|
endif ()
|
|
|
|
# call macro to include our dependency includes and bubble them up via a property on our target
|
|
include_dependency_includes() |