Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzahaki authored Oct 15, 2024
1 parent bccb5cc commit 9121a19
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion sudio/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ target_compile_definitions(
MINIAUDIO_IMPLEMENTATION
)

set_target_properties(sudio_io PROPERTIES POSITION_INDEPENDENT_CODE ON)


pybind11_add_module(sudio_io
src/codec.cpp
Expand Down Expand Up @@ -157,6 +157,19 @@ set_target_properties(sudio_io PROPERTIES
LINKER_LANGUAGE CXX
)


set_target_properties(
miniaudio
PortAudio
mp3lame
${OGG_LIBRARY}
FLAC
vorbis
vorbisenc
vorbisfile
PROPERTIES POSITION_INDEPENDENT_CODE ON)


target_link_libraries(sudio_io PRIVATE
miniaudio
PortAudio
Expand Down

0 comments on commit 9121a19

Please sign in to comment.