From 8ec3f8e82acd70410515550fd1790ee5827aafdb Mon Sep 17 00:00:00 2001 From: sanine Date: Fri, 26 Aug 2022 12:17:51 -0500 Subject: make sound --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.1