Skip to content
Permalink
Browse files

Allow running sextante plugin from build dir

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Oct 25, 2012
1 parent 844b57b commit 6ca7ea987d86251ee051b7d7ee974a1e9d78bd8f
Showing with 38 additions and 57 deletions.
  1. +2 −4 python/plugins/sextante/CMakeLists.txt
  2. +2 −3 python/plugins/sextante/about/CMakeLists.txt
  3. +1 −1 python/plugins/sextante/algs/CMakeLists.txt
  4. +1 −1 python/plugins/sextante/core/CMakeLists.txt
  5. +1 −3 python/plugins/sextante/ftools/CMakeLists.txt
  6. +1 −2 python/plugins/sextante/gdal/CMakeLists.txt
  7. +1 −1 python/plugins/sextante/gdal/scripts/CMakeLists.txt
  8. +2 −3 python/plugins/sextante/grass/CMakeLists.txt
  9. +2 −2 python/plugins/sextante/gui/CMakeLists.txt
  10. +1 −4 python/plugins/sextante/help/CMakeLists.txt
  11. +1 −1 python/plugins/sextante/images/CMakeLists.txt
  12. +1 −1 python/plugins/sextante/lidar/CMakeLists.txt
  13. +1 −1 python/plugins/sextante/lidar/fusion/CMakeLists.txt
  14. +1 −1 python/plugins/sextante/lidar/lastools/CMakeLists.txt
  15. +1 −3 python/plugins/sextante/mmqgisx/CMakeLists.txt
  16. +1 −1 python/plugins/sextante/modeler/CMakeLists.txt
  17. +3 −3 python/plugins/sextante/otb/CMakeLists.txt
  18. +1 −1 python/plugins/sextante/outputs/CMakeLists.txt
  19. +1 −1 python/plugins/sextante/parameters/CMakeLists.txt
  20. +1 −2 python/plugins/sextante/pymorph/CMakeLists.txt
  21. +1 −1 python/plugins/sextante/pymorph/html/CMakeLists.txt
  22. +1 −7 python/plugins/sextante/pymorph/html/morph/CMakeLists.txt
  23. +1 −1 python/plugins/sextante/pymorph/scripts/CMakeLists.txt
  24. +2 −2 python/plugins/sextante/r/CMakeLists.txt
  25. +3 −3 python/plugins/sextante/saga/CMakeLists.txt
  26. +1 −1 python/plugins/sextante/script/CMakeLists.txt
  27. +3 −3 python/plugins/sextante/taudem/CMakeLists.txt
@@ -27,8 +27,6 @@ FILE(GLOB PY_FILES *.py)

PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc)

ADD_CUSTOM_TARGET(sextante ALL DEPENDS ${PYRC_FILES})

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR})
INSTALL(FILES ${OTHER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR})
INSTALL(FILES ${PYRC_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR})

PLUGIN_INSTALL(sextante . ${PY_FILES} ${OTHER_FILES} ${PYRC_FILES})
@@ -3,7 +3,6 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB UI_FILES *.ui)
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})

ADD_CUSTOM_TARGET(sextante_about ALL DEPENDS ${PYUI_FILES})

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/about)
INSTALL(FILES ${PYUI_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/about)

PLUGIN_INSTALL(sextante ./about ${PY_FILES} ${PYUI_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/algs)
PLUGIN_INSTALL(sextante ./algs ${PY_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/core)
PLUGIN_INSTALL(sextante ./core ${PY_FILES})
@@ -2,6 +2,4 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB OTHER_FILES copyright.txt)
FILE(GLOB ICON_FILES icons/*.png)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/ftools)
INSTALL(FILES ${OTHER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/ftools)
INSTALL(FILES ${ICON_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/ftools/icons)
PLUGIN_INSTALL(sextante ./ftools ${PY_FILES} ${OTHER_FILES} ${ICON_FILES})
@@ -3,5 +3,4 @@ FILE(GLOB ICON_FILES icons/*.png)

ADD_SUBDIRECTORY(scripts)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/gdal)
INSTALL(FILES ${ICON_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/gdal/icons)
PLUGIN_INSTALL(sextante ./gdal ${PY_FILES} ${ICON_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/gdal/scripts)
PLUGIN_INSTALL(sextante ./gdal/scripts ${PY_FILES})
@@ -2,6 +2,5 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB OTHER_FILES grass.txt)
FILE(GLOB DESCR_FILES description/*.txt)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/grass)
INSTALL(FILES ${OTHER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/grass)
INSTALL(FILES ${DESCR_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/grass/description)
PLUGIN_INSTALL(sextante grass ${PY_FILES} ${OTHER_FILES})
PLUGIN_INSTALL(sextante grass/description ${DESCR_FILES})
@@ -1,5 +1,5 @@
FILE(GLOB PY_FILES *.py)
FILE(GLOB OTHER_FILES help/*.*)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/gui)
INSTALL(FILES ${OTHER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/gui/help)
PLUGIN_INSTALL(sextante gui ${PY_FILES})
PLUGIN_INSTALL(sextante gui/help ${OTHER_FILES})
@@ -3,7 +3,4 @@ FILE(GLOB OTHER_FILES *.js)
FILE(GLOB IMAGE_FILES _images/*.*)
FILE(GLOB STATIC_FILES _static/*.*)

INSTALL(FILES ${HTML_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/help)
INSTALL(FILES ${OTHER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/help)
INSTALL(FILES ${IMAGE_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/help/_images)
INSTALL(FILES ${STATIC_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/help/_static)
PLUGIN_INSTALL(sextante ./help ${HTML_FILES} ${OTHER_FILES} ${IMAGE_FILES} ${STATIC_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB IMAGE_FILES *.png)

INSTALL(FILES ${IMAGE_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/images)
PLUGIN_INSTALL(sextante ./images ${IMAGE_FILES})
@@ -3,4 +3,4 @@ FILE(GLOB PY_FILES *.py)
ADD_SUBDIRECTORY(fusion)
ADD_SUBDIRECTORY(lastools)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/lidar)
PLUGIN_INSTALL(sextante ./lidar ${PY_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/lidar/fusion)
PLUGIN_INSTALL(sextante ./lidar/fusion ${PY_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/lidar/lastools)
PLUGIN_INSTALL(sextante ./lidar/lastools ${PY_FILES})
@@ -2,6 +2,4 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB OTHER_FILES copyright.txt)
FILE(GLOB ICON_FILES icons/*.png)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/mmqgisx)
INSTALL(FILES ${OTHER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/mmqgisx)
INSTALL(FILES ${ICON_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/mmqgisx/icons)
PLUGIN_INSTALL(sextante ./mmqgisx ${PY_FILES} ${OTHER_FILES} ${ICON_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/modeler)
PLUGIN_INSTALL(sextante ./modeler ${PY_FILES})
@@ -2,6 +2,6 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB DESCR_FILES description/*.txt)
FILE(GLOB HELPER_FILES helper/*.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/otb)
INSTALL(FILES ${DESCR_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/otb/description)
INSTALL(FILES ${HELPER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/otb/helper)
PLUGIN_INSTALL(sextante ./otb ${PY_FILES})
PLUGIN_INSTALL(sextante ./otb/description ${DESCR_FILES})
PLUGIN_INSTALL(sextante ./otb/helper ${HELPER_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/outputs)
PLUGIN_INSTALL(sextante ./outputs ${PY_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/parameters)
PLUGIN_INSTALL(sextante ./parameters ${PY_FILES})
@@ -4,5 +4,4 @@ FILE(GLOB OTHER_FILES algnames.txt)
ADD_SUBDIRECTORY(html)
ADD_SUBDIRECTORY(scripts)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph)
INSTALL(FILES ${OTHER_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph)
PLUGIN_INSTALL(sextante ./pymorph ${PY_FILES} ${OTHER_FILES})
@@ -2,4 +2,4 @@ FILE(GLOB HTML_FILES *.html)

ADD_SUBDIRECTORY(morph)

INSTALL(FILES ${HTML_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html)
PLUGIN_INSTALL(sextante ./pymorph/html ${HTML_FILES})
@@ -6,10 +6,4 @@ FILE(GLOB MMINFO_FILES mminfo/*.*)
FILE(GLOB MMTYPES_FILES mmtype/*.*)
FILE(GLOB MORPH_FILES morph/*.*)

INSTALL(FILES ${HTML_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html/morph)
INSTALL(FILES ${GIF_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html/morph)
INSTALL(FILES ${IMAGES_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html/morph/images)
INSTALL(FILES ${MMDEMOS_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html/morph/mmdemos)
INSTALL(FILES ${MMINFO_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html/morph/mminfo)
INSTALL(FILES ${MMTYPES_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html/morph/mmtypes)
INSTALL(FILES ${MORPH_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/html/morph/morph)
PLUGIN_INSTALL(sextante ./pymorph/html/morph ${HTML_FILES} ${GIF_FILES} ${IMAGES_FILES} ${MMDEMOS_FILES} ${MMINFO_FILES} ${MMTYPES_FILES} ${MORPH_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/pymorph/scripts)
PLUGIN_INSTALL(sextante ./pymorph/scripts ${PY_FILES})
@@ -1,5 +1,5 @@
FILE(GLOB PY_FILES *.py)
FILE(GLOB SCRIPT_FILES scripts/*.rsx)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/r)
INSTALL(FILES ${SCRIPT_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/r/scripts)
PLUGIN_INSTALL(sextante r ${PY_FILES})
PLUGIN_INSTALL(sextante r/scripts ${SCRIPT_FILES})
@@ -2,6 +2,6 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB DESCR_FILES description/*.txt)
FILE(GLOB HELP_FILES help/*.html)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/saga)
INSTALL(FILES ${DESCR_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/saga/description)
INSTALL(FILES ${HELP_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/saga/help)
PLUGIN_INSTALL(sextante saga ${PY_FILES})
PLUGIN_INSTALL(sextante saga/description ${DESCR_FILES})
PLUGIN_INSTALL(sextante saga/help ${HELP_FILES})
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/script)
PLUGIN_INSTALL(sextante ./script ${PY_FILES})
@@ -2,6 +2,6 @@ FILE(GLOB PY_FILES *.py)
FILE(GLOB DESCR_FILES description/*.txt)
FILE(GLOB HELP_FILES help/*.html)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/taudem)
INSTALL(FILES ${DESCR_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/taudem/description)
INSTALL(FILES ${HELP_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/taudem/help)
PLUGIN_INSTALL(sextante taudem ${PY_FILES})
PLUGIN_INSTALL(sextante taudem/description ${DESCR_FILES})
PLUGIN_INSTALL(sextante taudem/help ${HELP_FILES})

0 comments on commit 6ca7ea9

Please sign in to comment.
You can’t perform that action at this time.