Update CMakeLists.txt (#26)

* add cmake option to build CLAP plugin or not
eg: -DPAULXSTRETCH_ENABLE_CLAP=False
This commit is contained in:
puddlemoon 2022-10-02 18:37:13 +00:00 committed by GitHub
parent 8ec191fdd7
commit b44fe4d13f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
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)