Salome HOME
updated copyright message
[modules/yacs.git] / src / wrappergen / src / CMakeLists.txt
1 # Copyright (C) 2006-2023  CEA, EDF
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, or (at your option) any later version.
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
20 SET(HXX2SALOMESCRIPTS
21   hxx2salome
22   hxx2salome_check
23   hxx2salome_cpp
24   hxx2salome_corba
25   parse01.awk
26   parse0.awk
27   parse1.awk
28   parse2.awk
29   parse30.awk
30   parse3.awk
31   parse4.awk
32   parse5.awk
33   renameSalomeModule
34   runIDLparser
35   compile_HXX2SALOME_GENERIC_CLASS_NAME.sh
36   )
37
38 SET(ENV_SH  ${CMAKE_CURRENT_BINARY_DIR}/env_HXX2SALOME.sh)
39 SET(ENV_CSH ${CMAKE_CURRENT_BINARY_DIR}/env_HXX2SALOME.csh)
40
41 INSTALL(FILES ${HXX2SALOMESCRIPTS} 
42   DESTINATION ${SALOME_INSTALL_HXX2SALOME} 
43   )
44
45 INSTALL(DIRECTORY HXX2SALOME_GENERIC_CLASS_NAME_SRC
46   DESTINATION ${SALOME_INSTALL_HXX2SALOME} 
47   USE_SOURCE_PERMISSIONS
48   PATTERN "CVS" EXCLUDE
49   )
50
51 FILE(WRITE ${ENV_SH} 
52   "#------ HXX2SALOME ------\n"
53   "export HXX2SALOME_ROOT_DIR=${CMAKE_INSTALL_PREFIX}/bin/HXX2SALOME_Test\n"
54   "export PATH=\${HXX2SALOME_ROOT_DIR}:\${PATH}\n"
55   "##\n"
56   )
57 FILE(WRITE ${ENV_CSH} 
58   "#------ HXX2SALOME ------\n"
59   "setenv HXX2SALOME_ROOT_DIR ${CMAKE_INSTALL_PREFIX}/bin/HXX2SALOME_Test\n"
60   "setenv PATH \${HXX2SALOME_ROOT_DIR}:\${PATH}\n"
61   "##\n"
62   )
63 INSTALL(FILES ${ENV_SH} ${ENV_CSH} DESTINATION ${SALOME_INSTALL_HXX2SALOME})