From e1c79a9d4bcd70cc7a46f5bb4dcae3f243c4e4fe Mon Sep 17 00:00:00 2001 From: gogins Date: Tue, 21 Nov 2023 12:32:08 -0500 Subject: [PATCH] Build Soundfile.cpp? (#13). --- CsoundAC/CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CsoundAC/CMakeLists.txt b/CsoundAC/CMakeLists.txt index 1541244ae..093d503de 100644 --- a/CsoundAC/CMakeLists.txt +++ b/CsoundAC/CMakeLists.txt @@ -51,7 +51,6 @@ if(BUILD_CSOUND_AC) ScoreNode.cpp Sequence.cpp Shell.cpp - Soundfile.cpp StrangeAttractor.cpp System.cpp Voicelead.cpp @@ -66,9 +65,14 @@ if(BUILD_CSOUND_AC) ../dependencies/portsmf/mfmidi.cpp ../dependencies/portsmf/strparse.cpp trace.cpp) -if(OPENCV_FOUND) - list(APPEND libcsoundac_SRCS "ImageToScore.cpp") -endif() + if(APPLE) + else() + target_include_directories(libCsoundAC SYSTEM PRIVATE ${LIBSNDFILE_INCLUDE_DIR}) + list(APPEND libcsoundac_SRCS "Soundfile.cpp") + endif() + if(OPENCV_FOUND) + list(APPEND libcsoundac_SRCS "ImageToScore.cpp") + endif() message(STATUS "libcsoundac_SRCS: " ${libcsoundac_SRCS}) if (MSVC) @@ -77,10 +81,6 @@ endif() add_library(libCsoundAC SHARED ${libcsoundac_SRCS}) endif() - if(APPLE) - target_include_directories(libCsoundAC SYSTEM PRIVATE ${LIBSNDFILE_INCLUDE_DIR}) - endif() - target_include_directories(libCsoundAC SYSTEM PRIVATE ${Python3_INCLUDE_DIRS}) target_include_directories(libCsoundAC SYSTEM PRIVATE ${CSOUND_INCLUDE_DIRS}) target_include_directories(libCsoundAC PRIVATE ${EIGEN3_INCLUDE_DIRS})