diff options
Diffstat (limited to 'plugins/CMakeLists.txt')
-rw-r--r-- | plugins/CMakeLists.txt | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/plugins/CMakeLists.txt b/plugins/CMakeLists.txt index 8ff9e16f..4322232b 100644 --- a/plugins/CMakeLists.txt +++ b/plugins/CMakeLists.txt @@ -1,25 +1,9 @@ -if(DINO_PLUGIN_ENABLED_http-files) - add_subdirectory(http-files) -endif(DINO_PLUGIN_ENABLED_http-files) - -if(DINO_PLUGIN_ENABLED_ice) - add_subdirectory(ice) -endif(DINO_PLUGIN_ENABLED_ice) - -if(DINO_PLUGIN_ENABLED_rtp) - add_subdirectory(rtp) -endif(DINO_PLUGIN_ENABLED_rtp) - -if(DINO_PLUGIN_ENABLED_openpgp) - add_subdirectory(gpgme-vala) - add_subdirectory(openpgp) -endif(DINO_PLUGIN_ENABLED_openpgp) - -if(DINO_PLUGIN_ENABLED_omemo) - add_subdirectory(omemo) - add_subdirectory(signal-protocol) -endif(DINO_PLUGIN_ENABLED_omemo) - -if(DINO_PLUGIN_ENABLED_notification-sound) - add_subdirectory(notification-sound) -endif(DINO_PLUGIN_ENABLED_notification-sound) +foreach(plugin ${PLUGINS}) + if ("omemo" STREQUAL ${plugin}) + add_subdirectory(signal-protocol) + endif () + if ("openpgp" STREQUAL ${plugin}) + add_subdirectory(gpgme-vala) + endif () + add_subdirectory(${plugin}) +endforeach(plugin) |