Salome HOME
Documentation, style and code performance update
[modules/adao.git] / bin / CMakeLists.txt
1 # Copyright (C) 2008-2024 EDF R&D
2 #
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.
7 #
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.
12 #
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
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19 # Author: Anthony Geay, anthony.geay@edf.fr, EDF R&D
20
21 install(
22     FILES AdaoYacsSchemaCreator.py
23     DESTINATION ${ADAO_BIN}
24 )
25 install(
26     FILES gui_Adao_QT_Eficas.py
27     PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
28     DESTINATION ${ADAO_BIN}
29 )
30 IF(WIN32)
31   SET(SEP "\\;")
32 ELSE(WIN32)
33   SET(SEP ":")
34 ENDIF(WIN32)
35
36 INSTALL( CODE "MACRO(GENERATE_EFICAS_CATA_FOR_ADAO  PY_EXE_CATA ADAO_CATA_GEN_FILE OUTPUT_DIR CATA_ADD_PYTHONPATH)
37 set(ENV{PYTHONPATH} \${CATA_ADD_PYTHONPATH}${SEP}\$ENV{PYTHONPATH})
38 EXECUTE_PROCESS(COMMAND \${PY_EXE_CATA} \${ADAO_CATA_GEN_FILE} \${OUTPUT_DIR} ADAO_Cata_V0.py)
39 ENDMACRO(GENERATE_EFICAS_CATA_FOR_ADAO)" )
40
41 INSTALL(CODE "GENERATE_EFICAS_CATA_FOR_ADAO( \"${PYTHON_EXECUTABLE}\" \"${CMAKE_CURRENT_SOURCE_DIR}/AdaoCatalogGenerator.py\" \"${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON}/adao/daEficas\" \"${CMAKE_INSTALL_PREFIX}/${ADAO_SCRIPT_PYTHON}\" )")