Skip to content

Commit

Permalink
Fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Oct 27, 2024
1 parent 397fcd6 commit b682a5a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit b682a5a

Please sign in to comment.