1 Commits

Author SHA1 Message Date
260ad36b7d build: add libsamplerate
Some checks failed
macOS and iOS CI / build (push) Has been cancelled
Windows CI / build (push) Has been cancelled
2026-03-07 22:19:31 +01:00

View File

@@ -3,7 +3,8 @@ project(rubberband)
set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-DUSE_BQRESAMPLER -DHAVE_KISSFFT") set(BUILD_TESTING FALSE)
set(CMAKE_CXX_FLAGS "-DUSE_BQRESAMPLER -DHAVE_KISSFFT -DHAVE_LIBSAMPLERATE")
#include_directories(mpg123/lib/x86_64/include) #include_directories(mpg123/lib/x86_64/include)
include_directories( include_directories(
@@ -58,4 +59,7 @@ add_executable(rubberband
#target_link_libraries(rubberband ${CMAKE_SOURCE_DIR}/mpg123/lib/x86_64/libmpg123.dll.a) #target_link_libraries(rubberband ${CMAKE_SOURCE_DIR}/mpg123/lib/x86_64/libmpg123.dll.a)
add_subdirectory(src/ext/libsndfile) add_subdirectory(src/ext/libsndfile)
target_link_libraries(rubberband sndfile) add_subdirectory(src/ext/libsamplerate)
target_link_libraries(rubberband sndfile samplerate)
target_include_directories(rubberband PRIVATE ${CMAKE_SOURCE_DIR}/src/ext/libsamplerate/include)