Ext: copy Python modules to Ext to be consistent with INSTALL target

This commit is contained in:
wmayer
2024-04-01 10:23:28 +02:00
committed by wwmayer
parent 4054520f08
commit 4b583018a0

View File

@@ -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}
)