diff --git a/Examples/Plugins/PluginList.cmake b/Examples/Plugins/PluginList.cmake index d97f545afb..505b07716c 100644 --- a/Examples/Plugins/PluginList.cmake +++ b/Examples/Plugins/PluginList.cmake @@ -1,18 +1,25 @@ # Plug-ins must be ordered according to their dependencies set(MITK_EXAMPLE_PLUGINS org.mitk.example.gui.minimalapplication:ON org.mitk.example.gui.customviewer:ON org.mitk.example.gui.customviewer.views:ON org.mitk.example.gui.multipleperspectives:ON org.mitk.example.gui.selectionserviceqt:ON org.mitk.example.gui.selectionservicemitk:ON org.mitk.example.gui.selectionservicemitk.views:ON org.mitk.example.gui.extensionpointdefinition:ON org.mitk.example.gui.extensionpointcontribution:ON org.mitk.example.gui.regiongrowing:ON org.mitk.example.gui.imaging:ON - org.mitk.example.gui.opencv:${MITK_USE_OpenCV} ) + +if(MITK_USE_OpenCV) + list(APPEND MITK_EXAMPLE_PLUGINS + org.mitk.example.gui.opencv:ON) +else() + list(APPEND MITK_EXAMPLE_PLUGINS + org.mitk.example.gui.opencv:OFF) +endif()