summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-08-26 12:17:51 -0500
committersanine <sanine.not@pm.me>2022-08-26 12:17:51 -0500
commit8ec3f8e82acd70410515550fd1790ee5827aafdb (patch)
tree348e32b7fe2f0e765d3acf91fa857880d8f6c3f6 /CMakeLists.txt
parenta20cdab55ba066301da138c4df945608524e741a (diff)
make sound
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 07d5174..d86dc60 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,6 +12,8 @@ add_subdirectory(${CMAKE_SOURCE_DIR}/portaudio EXCLUDE_FROM_ALL)
add_library(mossrose
${CMAKE_SOURCE_DIR}/src/mossrose.c
+ ${CMAKE_SOURCE_DIR}/src/mossrose-mutex.c
+ ${CMAKE_SOURCE_DIR}/src/mossrose-channel.c
)
set_target_properties(mossrose PROPERTIES
C_STANDARD 99
@@ -20,6 +22,9 @@ set_target_properties(mossrose PROPERTIES
PUBLIC_HEADER src/mossrose.h
)
target_link_libraries(mossrose portaudio)
+if (UNIX)
+ target_link_libraries(mossrose pthread)
+endif()
if (MOSSROSE_BUILD_EXAMPLES)