1 # Copyright (C) 2009-2014 EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License, or (at your option) any later version.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 from string import Template
23 from compat import Template,set
27 <section name="${module}">
28 <parameter name="name" value="${module}"/>
29 <parameter name="icon" value="${module}.png"/>
30 <parameter name="library" value="SalomePyQtGUI"/>
31 <parameter name="documentation" value="${lmodule}_help"/>
33 <section name="resources">
34 <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${lmodule}"/>
36 <section name="${lmodule}_help" >
37 <parameter name="sub_menu" value="%1 module"/>
38 <parameter name="User's Guide" value="%${module}_ROOT_DIR%/share/doc/salome/gui/${lmodule}/index.html"/>
42 pysalomeapp=Template(pysalomeapp)
46 <section name="${module}">
47 <parameter name="name" value="${module}"/>
48 <parameter name="icon" value="${module}.png"/>
49 <parameter name="documentation" value="${lmodule}_help"/>
51 <section name="resources">
52 <parameter name="${module}" value="$${${module}_ROOT_DIR}/share/salome/resources/${lmodule}"/>
54 <section name="${lmodule}_help" >
55 <parameter name="sub_menu" value="%1 module"/>
56 <parameter name="User's Guide" value="%${module}_ROOT_DIR%/share/doc/salome/gui/${lmodule}/index.html"/>
60 cppsalomeapp=Template(cppsalomeapp)
62 # CMakeLists.txt for a c++ GUI of the module (src/{module}GUI/CMakeLists.txt)
63 # template parameters:
64 # module : module name
65 # include_dirs : additional include directories
66 # libs : libraries to link to
67 # uic_files : .ui files
68 # moc_headers : header files - to be processed by moc
70 # resources : resource files
71 # ts_resources : .ts files - to be processed by lrelease
76 # additional include directories
79 $${OMNIORB_INCLUDE_DIR}
80 $${KERNEL_INCLUDE_DIRS}
82 $${PROJECT_BINARY_DIR}/idl
86 # additional preprocessor / compiler flags
89 $${OMNIORB_DEFINITIONS}
90 $${KERNEL_DEFINITIONS}
94 # libraries to link to
103 # resource files / to be processed by uic
110 # header files / to be processed by moc
115 # header files / uic wrappings
116 QT4_WRAP_UI(_uic_HEADERS $${_uic_files})
120 # sources / moc wrappings
121 QT4_WRAP_CPP(_moc_SOURCES $${_moc_HEADERS})
129 # sources / to compile
130 SET(${module}GUI_SOURCES
138 # resource files / to be processed by lrelease
150 ADD_LIBRARY(${module} $${${module}GUI_SOURCES})
151 TARGET_LINK_LIBRARIES(${module} $${_link_LIBRARIES} )
152 INSTALL(TARGETS ${module} EXPORT $${PROJECT_NAME}TargetGroup DESTINATION $${SALOME_INSTALL_LIBS})
154 INSTALL(FILES $${_moc_HEADERS} DESTINATION $${SALOME_INSTALL_HEADERS})
155 INSTALL(FILES $${_res_files} DESTINATION "$${SALOME_${module}_INSTALL_RES_DATA}")
156 QT4_INSTALL_TS_RESOURCES("$${_ts_files}" "$${SALOME_${module}_INSTALL_RES_DATA}")
158 cmake_cpp_gui = Template(cmake_cpp_gui)
160 # CMakeLists.txt for a python GUI (src/{module}GUI/CMakeLists.txt)
161 # template parameters:
162 # module : module name
163 # scripts : .py files
164 # ts_resources : .ts files - to be processed by lrelease
165 # resources : other resource files
169 # additional include directories
183 # resource files / to be processed by lrelease
195 SALOME_INSTALL_SCRIPTS("$${_bin_SCRIPTS}" $${SALOME_INSTALL_SCRIPT_PYTHON})
196 INSTALL(FILES $${_res_files} DESTINATION "$${SALOME_${module}_INSTALL_RES_DATA}")
197 QT4_INSTALL_TS_RESOURCES("$${_ts_RESOURCES}" "$${SALOME_${module}_INSTALL_RES_DATA}")
199 cmake_py_gui = Template(cmake_py_gui)