diff --git a/modules/audio/src/CMakeLists.txt b/modules/audio/src/CMakeLists.txt index 8ef11a5..2e00668 100644 --- a/modules/audio/src/CMakeLists.txt +++ b/modules/audio/src/CMakeLists.txt @@ -23,8 +23,8 @@ cmake_minimum_required(VERSION 3.10) set(TARGET audio) project(${TARGET}) -find_package(portaudio REQUIRED) -find_package(libsndfile REQUIRED) +find_package(portaudio CONFIG REQUIRED) +find_package(SndFile CONFIG REQUIRED) include_directories(${PROJECT_SOURCE_DIR}/../include) @@ -35,4 +35,7 @@ set(AUDIO_SRC add_library(${TARGET} STATIC ${AUDIO_SRC}) add_library(${TARGET}_wrapper SHARED ${AUDIO_SRC}) # required for bindings +target_link_libraries(${TARGET} SndFile::sndfile portaudio) +target_link_libraries(${TARGET}_wrapper SndFile::sndfile portaudio) + install(TARGETS ${TARGET}) \ No newline at end of file