commit 273d64b96115926585426ded37ccf47cfb66477b parent 0a71d57ac0151d2c2fd6491bb1bad84eaa8a28a8 Author: dsp56300 <87139854+dsp56300@users.noreply.github.com> Date: Wed, 14 Jul 2021 19:28:22 +0200 Merge pull request #1 from henryborchers/juce_plugin_is_optionally_turned_off Building the juce plugin can be optionally turned off. Diffstat:
M | CMakeLists.txt | | | 15 | +++++++++------ |
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -10,7 +10,7 @@ project(gearmulator VERSION 1.1.5) include(base.cmake) set(ASMJIT_STATIC TRUE) - +option(${PROJECT_NAME}_BUILD_JUCEPLUGIN "Build Juce plugin" on) add_subdirectory(source/dsp56300/source) add_subdirectory(source/synthLib) add_subdirectory(source/virusLib) @@ -25,15 +25,18 @@ add_subdirectory(source/ctrlr/JUCE) # ----------------- Juce based audio plugin -set_property(GLOBAL PROPERTY USE_FOLDERS YES) -set(JUCE_ENABLE_MODULE_SOURCE_GROUPS ON CACHE BOOL "" FORCE) -add_subdirectory(source/jucePlugin) +set_property(GLOBAL PROPERTY USE_FOLDERS YES) +if(${PROJECT_NAME}_BUILD_JUCEPLUGIN) + set(JUCE_ENABLE_MODULE_SOURCE_GROUPS ON CACHE BOOL "" FORCE) + add_subdirectory(source/jucePlugin) + if(UNIX AND NOT APPLE) + install(TARGETS jucePlugin_VST LIBRARY DESTINATION /usr/local/lib/lxvst/ COMPONENT plugin) + endif() -if(UNIX AND NOT APPLE) - install(TARGETS jucePlugin_VST LIBRARY DESTINATION /usr/local/lib/lxvst/ COMPONENT plugin) endif() + # ----------------- Test Console add_executable(virusTestConsole)