mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-15 06:52:52 +01:00
25 lines
730 B
CMake
25 lines
730 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
project(audio_source)
|
|
|
|
file(GLOB SRC "src/*.cpp")
|
|
|
|
include(${SDRPP_MODULE_CMAKE})
|
|
|
|
if (MSVC)
|
|
# Lib path
|
|
target_link_directories(audio_source PRIVATE "C:/Program Files (x86)/RtAudio/lib")
|
|
|
|
# Misc headers
|
|
target_include_directories(audio_source PRIVATE "C:/Program Files (x86)/RtAudio/include/rtaudio")
|
|
|
|
target_link_libraries(audio_source PRIVATE rtaudio)
|
|
else (MSVC)
|
|
find_package(PkgConfig)
|
|
|
|
pkg_check_modules(RTAUDIO REQUIRED rtaudio)
|
|
|
|
target_include_directories(audio_source PRIVATE ${RTAUDIO_INCLUDE_DIRS})
|
|
target_link_directories(audio_source PRIVATE ${RTAUDIO_LIBRARY_DIRS})
|
|
target_link_libraries(audio_source PRIVATE ${RTAUDIO_LIBRARIES})
|
|
|
|
endif () |