From 4b583018a0654fac390cb8de2bada373d519fe1e Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 1 Apr 2024 10:23:28 +0200 Subject: [PATCH] Ext: copy Python modules to Ext to be consistent with INSTALL target --- src/Ext/freecad/CMakeLists.txt | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/Ext/freecad/CMakeLists.txt b/src/Ext/freecad/CMakeLists.txt index 8b4056d388..c39e5e07eb 100644 --- a/src/Ext/freecad/CMakeLists.txt +++ b/src/Ext/freecad/CMakeLists.txt @@ -25,9 +25,19 @@ else() endif() configure_file(__init__.py.template ${NAMESPACE_INIT}) -configure_file(project_utility.py ${NAMESPACE_DIR}/project_utility.py) -configure_file(UiTools.py ${NAMESPACE_DIR}/UiTools.py) -configure_file(utils.py ${NAMESPACE_DIR}/utils.py) + +set(EXT_FILES + part.py + partdesign.py + project_utility.py + sketcher.py + UiTools.py + utils.py +) + +foreach (it ${EXT_FILES}) + configure_file(${it} ${NAMESPACE_DIR}/${it}) +endforeach() if (INSTALL_TO_SITEPACKAGES) SET(SITE_PACKAGE_DIR ${PYTHON_MAIN_DIR}/freecad) @@ -38,12 +48,7 @@ endif() INSTALL( FILES ${NAMESPACE_INIT} - part.py - partdesign.py - sketcher.py - project_utility.py - UiTools.py - utils.py + ${EXT_FILES} DESTINATION ${SITE_PACKAGE_DIR} )