diff --git a/Applications/PluginGenerator/PluginTemplate/CMakeLists.txt b/Applications/PluginGenerator/PluginTemplate/CMakeLists.txt index 7839a577ed..04bcee61f1 100644 --- a/Applications/PluginGenerator/PluginTemplate/CMakeLists.txt +++ b/Applications/PluginGenerator/PluginTemplate/CMakeLists.txt @@ -1,7 +1,11 @@ project($(plugin-target)) +if(MITK_USE_Qt5) + find_package(Qt5Widgets REQUIRED) +endif() + MACRO_CREATE_MITK_CTK_PLUGIN( EXPORT_DIRECTIVE $(plugin-export-directive) EXPORTED_INCLUDE_SUFFIXES src MODULE_DEPENDS MitkQtWidgetsExt )