Salome HOME
Copyright update 2022
[tools/yacsgen.git] / module_generator / mod_tmpl.py
index 55ef07c1cfa0a0ce0cb67871572d866c4f4086dd..a48c5b12056a940d3b5e1ff03076a7cf5099de69 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2016  EDF R&D
+# Copyright (C) 2009-2022  EDF R&D
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -25,7 +25,11 @@ except:
 application="""
 <application>
 <prerequisites path="${prerequisites}"/>
+<context path="${context}"/>
 ${resources}
+<env_modules>
+${env_modules}
+</env_modules>
 <modules>
 ${modules}
 </modules>
@@ -143,13 +147,9 @@ IF(SALOME_GUI_MODULE)
   ##
   ## From GUI:
   ##
-  FIND_PACKAGE(SalomeCAS REQUIRED)
-  # Qt4/Qt5
-  IF(NOT SALOME_GUI_BUILD_WITH_QT5)
-    FIND_PACKAGE(SalomeQt4 REQUIRED COMPONENTS QtCore QtGui)
-  ELSE()
-    FIND_PACKAGE(SalomeQt5 REQUIRED)
-  ENDIF()
+  FIND_PACKAGE(SalomeOpenCASCADE REQUIRED)
+  # Qt5
+  FIND_PACKAGE(SalomeQt5 REQUIRED)
 ENDIF(SALOME_GUI_MODULE)
 
 ${add_modules}