From b682a5a5a14e6b57125c32a41a8381fa10af1891 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Sun, 27 Oct 2024 23:02:06 +0000 Subject: [PATCH] Fix Linux build --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f693c7b..684253a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,6 +147,9 @@ add_library(signalflow SHARED ${SRC}) #------------------------------------------------------------------------------- add_compile_definitions(SIGNALFLOW_VERSION="${SIGNALFLOW_VERSION}") +#------------------------------------------------------------------------------- +# Dependency: libsndfile +#------------------------------------------------------------------------------- if (CMAKE_SYSTEM_NAME STREQUAL "Windows") set(SNDFILE_BINARY_DIR "${PROJECT_SOURCE_DIR}/../libsndfile-1.2.2-win64" CACHE PATH "For Windows, path to downloaded sndfile directory") add_definitions(-DHAVE_SNDFILE) @@ -163,9 +166,12 @@ else() endif() endif() +#------------------------------------------------------------------------------- +# Dependency: fftw3 +#------------------------------------------------------------------------------- if (NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin") - set(FFTW_BUILD_DIR "${PROJECT_SOURCE_DIR}/../fftw-3.3.5-dll64" CACHE PATH "Path to prebuilt FFTW library (will use find_library if blank)") - if (FFTW_BUILD_DIR) + if (CMAKE_SYSTEM_NAME STREQUAL "Windows")) + set(FFTW_BUILD_DIR "${PROJECT_SOURCE_DIR}/../fftw-3.3.5-dll64" CACHE PATH "Path to prebuilt FFTW library (will use find_library if blank)") include_directories("${FFTW_BUILD_DIR}") add_definitions(-DFFT_FFTW) target_link_libraries(signalflow