summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-09-07 21:13:44 -0500
committersanine <sanine.not@pm.me>2022-09-07 21:13:44 -0500
commit72cd969bdad28b8bc6094a1503a774005b6f1257 (patch)
treed09c135e1f9a2c2a14027a03770f0f6834ef268e /CMakeLists.txt
parenta77b34a4ebdc994cce7a3d1f00121f421ca31b53 (diff)
use static libraries and fix build on windowsfeature-load-mp3
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 9 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e223470..437601c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,7 @@ option(MOSSROSE_BUILD_TESTS "Build the tests" OFF)
######## third-party libraries ########
add_subdirectory(${CMAKE_SOURCE_DIR}/3rdparty/portaudio EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_SOURCE_DIR}/3rdparty/plibsys EXCLUDE_FROM_ALL)
-add_subdirectory(${CMAKE_SOURCE_DIR}/3rdparty/libwav EXCLUDE_FROM_ALL)
+#add_subdirectory(${CMAKE_SOURCE_DIR}/3rdparty/libwav EXCLUDE_FROM_ALL)
add_library(mossrose)
set_target_properties(mossrose PROPERTIES
@@ -22,7 +22,10 @@ set_target_properties(mossrose PROPERTIES
VERSION ${PROJECT_VERSION}
PUBLIC_HEADER src/mossrose.h
)
-target_link_libraries(mossrose portaudio plibsys wav::wav m)
+target_link_libraries(mossrose portaudio_static plibsysstatic)
+if (UNIX)
+ target_link_libraries(mossrose m)
+endif()
if (MOSSROSE_BUILD_EXAMPLES)
@@ -33,7 +36,10 @@ endif()
if (MOSSROSE_BUILD_TESTS)
add_executable(test)
- target_link_libraries(test plibsys m)
+ target_link_libraries(test plibsysstatic)
+ if (UNIX)
+ target_link_libraries(test m)
+ endif()
endif()