mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix copy of extra python files
This commit is contained in:
parent
9615a838b4
commit
938f288b86
@ -198,14 +198,15 @@ FOREACH(module core gui analysis networkanalysis)
|
|||||||
ADD_CUSTOM_TARGET(py${module} ALL)
|
ADD_CUSTOM_TARGET(py${module} ALL)
|
||||||
FILE(GLOB_RECURSE PY_FILES "${module}/*.py")
|
FILE(GLOB_RECURSE PY_FILES "${module}/*.py")
|
||||||
INSTALL(FILES ${PY_FILES} DESTINATION "${QGIS_PYTHON_DIR}/${module}")
|
INSTALL(FILES ${PY_FILES} DESTINATION "${QGIS_PYTHON_DIR}/${module}")
|
||||||
|
FOREACH(pyfile ${PY_FILES})
|
||||||
ADD_CUSTOM_COMMAND(TARGET py${module}
|
ADD_CUSTOM_COMMAND(TARGET py${module}
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory "${QGIS_PYTHON_OUTPUT_DIRECTORY}/${module}"
|
COMMAND ${CMAKE_COMMAND} -E make_directory "${QGIS_PYTHON_OUTPUT_DIRECTORY}/${module}"
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy ${PY_FILES} "${QGIS_PYTHON_OUTPUT_DIRECTORY}/${module}"
|
COMMAND ${CMAKE_COMMAND} -E copy ${pyfile} "${QGIS_PYTHON_OUTPUT_DIRECTORY}/${module}"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
DEPENDS ${pyfile}
|
DEPENDS ${PY_FILES}
|
||||||
)
|
)
|
||||||
|
ENDFOREACH(pyfile)
|
||||||
ENDFOREACH(module)
|
ENDFOREACH(module)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user