Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
properly find packages and link libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
MGTheTrain committed Apr 17, 2024
1 parent 71f5ae6 commit 200c87e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/audio/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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})

0 comments on commit 200c87e

Please sign in to comment.