Created
May 19, 2014 11:36
-
-
Save NathanW2/2bcbdab504dbd2ad6a02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOREACH(module core) | |
ADD_CUSTOM_TARGET(py${module} ALL) | |
FILE(GLOB_RECURSE PY_FILES "${module}/*.py") | |
INSTALL(FILES ${PY_FILES} DESTINATION "${QGIS_PYTHON_DIR}/${module}") | |
ADD_CUSTOM_COMMAND(TARGET py${module} | |
POST_BUILD | |
COMMAND ${CMAKE_COMMAND} -E make_directory "${QGIS_PYTHON_OUTPUT_DIRECTORY}/${module}" | |
COMMAND ${CMAKE_COMMAND} -E copy ${PY_FILES} "${QGIS_PYTHON_OUTPUT_DIRECTORY}/${module}" | |
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | |
DEPENDS ${pyfile} | |
) | |
ENDFOREACH(module) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment