From b44fe4d13fb5be4f53285df9ce57f1451dae6a67 Mon Sep 17 00:00:00 2001 From: puddlemoon <81414908+puddlemoon@users.noreply.github.com> Date: Sun, 2 Oct 2022 18:37:13 +0000 Subject: [PATCH] Update CMakeLists.txt (#26) * add cmake option to build CLAP plugin or not eg: -DPAULXSTRETCH_ENABLE_CLAP=False --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1533bab..b2c08b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,11 +79,16 @@ add_subdirectory(deps/juce EXCLUDE_FROM_ALL ) # Extend JUCE with CLAP support from https://github.com/free-audio/clap-juce-extensions -add_subdirectory(deps/clap-juce-extensions EXCLUDE_FROM_ALL) +option(PAULXSTRETCH_ENABLE_CLAP "Build clap format plugin " ON) +if (PAULXSTRETCH_ENABLE_CLAP) + add_subdirectory(deps/clap-juce-extensions EXCLUDE_FROM_ALL) +endif() - -set (FormatsToBuild VST3 CLAP Standalone) +set (FormatsToBuild VST3 Standalone) +if (PAULXSTRETCH_ENABLE_CLAP) + list (APPEND FormatsToBuild CLAP) +endif() # On Mac, an AU version will be built too if (APPLE)