Salome HOME
updated copyright message
[modules/kernel.git] / src / KERNEL_PY / kernel / CMakeLists.txt
old mode 100755 (executable)
new mode 100644 (file)
index bad4e66..39ab6c5
@@ -1,9 +1,9 @@
-# Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2023  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
 # License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
 #
 # This library is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 ADD_SUBDIRECTORY(parametric)
 
-CONFIGURE_FILE(logconfig.py.in logconfig.py @ONLY)
-CONFIGURE_FILE(kernelpy_autotest.sh.in kernelpy_autotest.sh @ONLY)
+SALOME_CONFIGURE_FILE(logconfig.py.in logconfig.py)
+SALOME_CONFIGURE_FILE(kernelpy_autotest.sh.in kernelpy_autotest.sh)
+SALOME_CONFIGURE_FILE(__init__.py __init__.py INSTALL ${SALOME_INSTALL_PYTHON}/salome/kernel)
 
 # This first set of modules could be used in any context, you just
-# have to get a python environement.
+# have to get a python environment.
 SET(mypkgpython_PYTHON
-    __init__.py
     deprecation.py
     logger.py
     termcolor.py
@@ -40,10 +40,9 @@ SET(mypkgpython_PYTHON
     syshelper.py
 )
 # This set of modules required a running SALOME application.
-SET(mypkgpython_PYTHON
-    ${mypkgpython_PYTHON}
+LIST(APPEND mypkgpython_PYTHON
     studyedit.py
     services.py
+    ${CMAKE_CURRENT_BINARY_DIR}/logconfig.py
 )
-SALOME_INSTALL_SCRIPTS("${mypkgpython_PYTHON}" ${KERNEL_salomepythondir}/salome/kernel)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/logconfig.py DESTINATION ${KERNEL_salomepythondir}/salome/kernel)
\ No newline at end of file
+SALOME_INSTALL_SCRIPTS("${mypkgpython_PYTHON}" ${SALOME_INSTALL_PYTHON}/salome/kernel)