Salome HOME
Copyright update 2021
[tools/yacsgen.git] / module_generator / mod_tmpl.py
index 793377ae61076363050a65dda8475945502b0545..d7cd0869d194e104f7ef3c0668b1a6917fb8103d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2009-2016  EDF R&D
+# Copyright (C) 2009-2021  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
 try:
   from string import Template
 except:
-  from compat import Template,set
+  from module_generator.compat import Template,set
 
 application="""
 <application>
 <prerequisites path="${prerequisites}"/>
+<context path="${context}"/>
 ${resources}
 <modules>
 ${modules}
@@ -143,13 +144,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}