Skip to content

Commit

Permalink
clap support cmake mods
Browse files Browse the repository at this point in the history
  • Loading branch information
essej committed Jun 14, 2022
1 parent bd701cb commit 1b74370
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand All @@ -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}")


Expand Down

0 comments on commit 1b74370

Please sign in to comment.