diff --git a/CMakeLists.txt b/CMakeLists.txt index cd8f5fdd2..9f4874fe0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,7 @@ set(EPS_SHARED_DIR ${CMAKE_CURRENT_SOURCE_DIR}/shared) set(JUCE_SUPPORT_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/shared/resources) add_subdirectory(${EPS_SHARED_DIR}/version) +set(EPS_PLUGIN_TARGETS) add_subdirectory(ear-production-suite-plugins) add_subdirectory(reaper-adm-extension) add_subdirectory(reaper-adm-export-source-plugin) diff --git a/cmake_modules/juce_helpers.cmake b/cmake_modules/juce_helpers.cmake index 2afc3b643..209d43996 100644 --- a/cmake_modules/juce_helpers.cmake +++ b/cmake_modules/juce_helpers.cmake @@ -38,6 +38,10 @@ function(add_juce_vst3_plugin PLUGIN_NAME) target_include_directories(${PLUGIN_NAME}_VST3 PRIVATE ${_SUPPORT_PATH}/ ${EPS_SHARED_DIR}) target_link_libraries(${PLUGIN_NAME}_VST3 PRIVATE Juce::VST3) + set(EPS_PLUGIN_TARGETS_COPY ${EPS_PLUGIN_TARGETS}) + list(APPEND EPS_PLUGIN_TARGETS_COPY ${PLUGIN_NAME}_VST3 ) + set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS_COPY} PARENT_SCOPE) + set_target_properties(${PLUGIN_NAME}_VST3 PROPERTIES BUNDLE TRUE OUTPUT_NAME "${PLUGIN_OUTPUT_NAME}" diff --git a/ear-production-suite-plugins/CMakeLists.txt b/ear-production-suite-plugins/CMakeLists.txt index 4f04261d5..00d82bc44 100644 --- a/ear-production-suite-plugins/CMakeLists.txt +++ b/ear-production-suite-plugins/CMakeLists.txt @@ -49,6 +49,7 @@ endif() add_subdirectory(lib) add_subdirectory(plugins) +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) add_subdirectory(tools) add_subdirectory(packaging) if(EAR_PLUGINS_UNIT_TESTS) diff --git a/ear-production-suite-plugins/plugins/CMakeLists.txt b/ear-production-suite-plugins/plugins/CMakeLists.txt index e490cf7a3..951d34da5 100644 --- a/ear-production-suite-plugins/plugins/CMakeLists.txt +++ b/ear-production-suite-plugins/plugins/CMakeLists.txt @@ -5,4 +5,4 @@ add_subdirectory(hoa) add_subdirectory(scene) add_subdirectory(monitoring) add_subdirectory(binaural_monitoring) - +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) diff --git a/ear-production-suite-plugins/plugins/binaural_monitoring/CMakeLists.txt b/ear-production-suite-plugins/plugins/binaural_monitoring/CMakeLists.txt index 6579d42dd..a046d2a89 100644 --- a/ear-production-suite-plugins/plugins/binaural_monitoring/CMakeLists.txt +++ b/ear-production-suite-plugins/plugins/binaural_monitoring/CMakeLists.txt @@ -65,7 +65,7 @@ add_juce_vst3_plugin( DISPLAY_NAME "EAR Binaural Monitoring" DESCRIPTION "The binaural monitoring plugin" OUTPUT_NAME "EAR Binaural Monitoring") - +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) target_link_libraries(ear_binaural_monitoring_VST3 PRIVATE ear-plugin-base ear-version bear) install(TARGETS ear_binaural_monitoring_VST3 COMPONENT Plugins DESTINATION "${EPS_PLUGIN_INSTALL_PREFIX}ear-production-suite") diff --git a/ear-production-suite-plugins/plugins/direct_speakers/CMakeLists.txt b/ear-production-suite-plugins/plugins/direct_speakers/CMakeLists.txt index 02e5d8589..ff7f2e54a 100644 --- a/ear-production-suite-plugins/plugins/direct_speakers/CMakeLists.txt +++ b/ear-production-suite-plugins/plugins/direct_speakers/CMakeLists.txt @@ -72,7 +72,7 @@ add_juce_vst3_plugin(direct_speakers DISPLAY_NAME "EAR DirectSpeakers" DESCRIPTION "The metadata input plugin for channel-based audio" OUTPUT_NAME "EAR DirectSpeakers") - +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) target_link_libraries(direct_speakers_VST3 PRIVATE ear-plugin-base ear-version) target_compile_definitions(direct_speakers_VST3 PRIVATE USE_NEW_DESIGN) diff --git a/ear-production-suite-plugins/plugins/hoa/CMakeLists.txt b/ear-production-suite-plugins/plugins/hoa/CMakeLists.txt index c17acc845..0c9413658 100644 --- a/ear-production-suite-plugins/plugins/hoa/CMakeLists.txt +++ b/ear-production-suite-plugins/plugins/hoa/CMakeLists.txt @@ -68,7 +68,7 @@ add_juce_vst3_plugin(hoa DISPLAY_NAME "EAR HOA" DESCRIPTION "The metadata input plugin for scene-based audio" OUTPUT_NAME "EAR HOA") - +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) target_link_libraries(hoa_VST3 PRIVATE ear-plugin-base ear-version) install_juce_vst3_plugin(hoa "${EPS_PLUGIN_INSTALL_PREFIX}ear-production-suite") diff --git a/ear-production-suite-plugins/plugins/monitoring/CMakeLists.txt b/ear-production-suite-plugins/plugins/monitoring/CMakeLists.txt index f907cefc0..93e6e171e 100644 --- a/ear-production-suite-plugins/plugins/monitoring/CMakeLists.txt +++ b/ear-production-suite-plugins/plugins/monitoring/CMakeLists.txt @@ -51,6 +51,7 @@ function(add_monitoring_plugin SPEAKER_LAYOUT SPEAKER_LAYOUT_NAME AUDIO_PACK_FOR OUTPUT_NAME "EAR Monitoring ${SPEAKER_LAYOUT}" IDE_FOLDER ${IDE_FOLDER_PLUGINS} ) + set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) target_compile_definitions( ear_monitoring_${SPEAKER_LAYOUT}_VST3 PRIVATE SPEAKER_LAYOUT="${SPEAKER_LAYOUT}" @@ -75,3 +76,4 @@ if(EAR_PLUGINS_BUILD_ALL_MONITORING_PLUGINS) add_monitoring_plugin("4+7+0" "7.1+4H" "AP_00010017" "A9") add_monitoring_plugin("2+7+0" "7.1+2H" "AP_00010016" "AA") endif() +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) diff --git a/ear-production-suite-plugins/plugins/object/CMakeLists.txt b/ear-production-suite-plugins/plugins/object/CMakeLists.txt index 97c78f878..bccc08a7f 100644 --- a/ear-production-suite-plugins/plugins/object/CMakeLists.txt +++ b/ear-production-suite-plugins/plugins/object/CMakeLists.txt @@ -73,7 +73,7 @@ add_juce_vst3_plugin(object DISPLAY_NAME "EAR Object" DESCRIPTION "The metadata input plugin for objects" OUTPUT_NAME "EAR Object") - +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) target_include_directories(object_VST3 PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) target_link_libraries(object_VST3 PRIVATE ear-plugin-base ear-version) install_juce_vst3_plugin(object "${EPS_PLUGIN_INSTALL_PREFIX}ear-production-suite") diff --git a/ear-production-suite-plugins/plugins/scene/CMakeLists.txt b/ear-production-suite-plugins/plugins/scene/CMakeLists.txt index e199a9823..c774b2a76 100644 --- a/ear-production-suite-plugins/plugins/scene/CMakeLists.txt +++ b/ear-production-suite-plugins/plugins/scene/CMakeLists.txt @@ -97,7 +97,7 @@ add_juce_vst3_plugin(scene DISPLAY_NAME "EAR Scene" DESCRIPTION "The scene plugin" OUTPUT_NAME "EAR Scene") - +set(EPS_PLUGIN_TARGETS ${EPS_PLUGIN_TARGETS} PARENT_SCOPE) target_link_libraries(scene_VST3 PRIVATE ear-plugin-base ear-version) install_juce_vst3_plugin(scene "${EPS_PLUGIN_INSTALL_PREFIX}ear-production-suite")