]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
[KW103] : CMake logic error in order to be able to build MEDReader without Qt
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 5 Jun 2023 06:01:19 +0000 (08:01 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 5 Jun 2023 06:01:19 +0000 (08:01 +0200)
src/Plugins/MEDReader/plugin/ParaViewPlugin/CMakeLists.txt

index 89fbd891c174d6602147a66d4e9de9e0280a79b1..a035a3f5b152a1970ba808fcba3e9d27046e60f2 100644 (file)
@@ -24,6 +24,9 @@ set(sources)
 cmake_policy(SET CMP0071 OLD) # bug in ParaViewPlugin.cmake?
 
 if(PARAVIEW_USE_QT)
+  set(ui_resource_files
+    Resources/pqMEDReader.qrc)
+
   set(ui_files
     MEDReaderVectorsWidget.ui
     MEDReaderTimeModeWidget.ui)
@@ -113,7 +116,7 @@ paraview_add_plugin(MEDReader
   UI_INTERFACES ${interfaces}
   UI_FILES ${ui_files}
   SOURCES ${sources}
-  UI_RESOURCES Resources/pqMEDReader.qrc
+  UI_RESOURCES ${ui_resource_files}
   SERVER_MANAGER_XML Resources/MEDReaderServer.xml
   MODULES MEDReaderIO
   MODULE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/../MEDReaderIO/vtk.module"