diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
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) |