From 1b743700030422251f8e1b50f094c7a50ffff8fd Mon Sep 17 00:00:00 2001 From: essej Date: Tue, 14 Jun 2022 19:41:36 -0400 Subject: [PATCH] clap support cmake mods --- CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6938012..1533bab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,11 +78,12 @@ option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Show all module sources in IDE projects add_subdirectory(deps/juce EXCLUDE_FROM_ALL ) -# juce_add_modules(deps/ff_meters) +# Extend JUCE with CLAP support from https://github.com/free-audio/clap-juce-extensions +add_subdirectory(deps/clap-juce-extensions EXCLUDE_FROM_ALL) -set (FormatsToBuild VST3 Standalone) +set (FormatsToBuild VST3 CLAP Standalone) # On Mac, an AU version will be built too if (APPLE) @@ -168,6 +169,7 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr PLIST_TO_MERGE "${MacPList}" AU_MAIN_TYPE "kAudioUnitType_MusicEffect" + COPY_PLUGIN_AFTER_BUILD FALSE # Set to TRUE to auto-install # other settings... PLUGIN_MANUFACTURER_CODE Sono @@ -176,6 +178,14 @@ function(sono_add_custom_plugin_target target_name product_name formats is_instr DESCRIPTION "PaulXStretch - Extreme Timestretching" PRODUCT_NAME "${product_name}") + + if ("CLAP" IN_LIST formats) + # Configure the CLAP plugin + clap_juce_extensions_plugin(TARGET "${target_name}" + CLAP_ID "com.sonosaurus.paulstretch.clap" + CLAP_FEATURES "audio-effect") + endif() + juce_generate_juce_header("${target_name}")