AnalogTapeModel

Physical modelling signal processing for analog tape recording
Log | Files | Refs | Submodules | README | LICENSE

commit 67df9bc019f474750d6dadb556f8975e3fde861d
parent 0a137a3ead1ff248ed34fda2e017ab050f4f4527
Author: jatin <jatinchowdhury18@gmail.com>
Date:   Tue, 13 Dec 2022 22:05:23 -0800

Don't build CLAP version of the plugin when using older version of CMake

Diffstat:
MPlugin/CMakeLists.txt | 12+++++++++++-
MPlugin/modules/CMakeLists.txt | 2+-
2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/Plugin/CMakeLists.txt b/Plugin/CMakeLists.txt @@ -3,6 +3,16 @@ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment tar set(CMAKE_CXX_STANDARD 17) project(CHOWTapeModel VERSION 2.11.0) +if(IOS) + option(CHOWTAPE_BUILD_CLAP "Create a CLAP target for ChowTape" OFF) +else() + option(CHOWTAPE_BUILD_CLAP "Create a CLAP target for ChowTape" ON) +endif() + +if (CHOWTAPE_BUILD_CLAP AND (CMAKE_VERSION VERSION_LESS 3.21.0)) + message(WARNING "CLAP builds require CMake version 3.21 or higher! To disable CLAP builds, run CMake configuration with \"-DCHOWTAPE_BUILD_CLAP=OFF\"") +endif() + add_subdirectory(modules) include_directories(modules/RTNeural) @@ -61,7 +71,7 @@ juce_generate_juce_header(CHOWTapeModel) add_subdirectory(Source) -if(NOT IOS) +if(CHOWTAPE_BUILD_CLAP) clap_juce_extensions_plugin( TARGET CHOWTapeModel CLAP_ID "org.chowdsp.CHOWTapeModel" diff --git a/Plugin/modules/CMakeLists.txt b/Plugin/modules/CMakeLists.txt @@ -39,7 +39,7 @@ target_link_libraries(juce_plugin_modules warning_flags ) -if(NOT IOS) +if(CHOWTAPE_BUILD_CLAP) add_subdirectory(clap-juce-extensions EXCLUDE_FROM_ALL) target_link_libraries(juce_plugin_modules PRIVATE