1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Allow users to query which plugin targets were created

This commit is contained in:
reuk 2020-04-14 13:31:54 +01:00
parent eae9a10944
commit c9872ce3a6

View file

@ -1437,8 +1437,14 @@ function(_juce_configure_plugin_targets target)
if(kind IN_LIST enabled_formats)
_juce_link_plugin_wrapper(${target} ${kind})
endif()
if(TARGET ${target}_${kind})
list(APPEND active_plugin_targets ${target}_${kind})
endif()
endforeach()
set_target_properties(${target} PROPERTIES JUCE_ACTIVE_PLUGIN_TARGETS "${active_plugin_targets}")
if(TARGET ${target}_Standalone)
_juce_configure_app_bundle(${target} ${target}_Standalone)
endif()