Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow running sextante plugin from build dir
  • Loading branch information
Sandro Santilli committed Oct 25, 2012
1 parent 844b57b commit 6ca7ea9
Show file tree
Hide file tree
Showing 27 changed files with 38 additions and 57 deletions.
6 changes: 2 additions & 4 deletions python/plugins/sextante/CMakeLists.txt
Expand Up @@ -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})
5 changes: 2 additions & 3 deletions python/plugins/sextante/about/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/algs/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/algs)
PLUGIN_INSTALL(sextante ./algs ${PY_FILES})
2 changes: 1 addition & 1 deletion python/plugins/sextante/core/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/core)
PLUGIN_INSTALL(sextante ./core ${PY_FILES})
4 changes: 1 addition & 3 deletions python/plugins/sextante/ftools/CMakeLists.txt
Expand Up @@ -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 changes: 1 addition & 2 deletions python/plugins/sextante/gdal/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/gdal/scripts/CMakeLists.txt
@@ -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})
5 changes: 2 additions & 3 deletions python/plugins/sextante/grass/CMakeLists.txt
Expand Up @@ -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})
4 changes: 2 additions & 2 deletions python/plugins/sextante/gui/CMakeLists.txt
@@ -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})
5 changes: 1 addition & 4 deletions python/plugins/sextante/help/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/images/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB IMAGE_FILES *.png)

INSTALL(FILES ${IMAGE_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/images)
PLUGIN_INSTALL(sextante ./images ${IMAGE_FILES})
2 changes: 1 addition & 1 deletion python/plugins/sextante/lidar/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/lidar/fusion/CMakeLists.txt
@@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/lidar/lastools/CMakeLists.txt
@@ -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})
4 changes: 1 addition & 3 deletions python/plugins/sextante/mmqgisx/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/modeler/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/modeler)
PLUGIN_INSTALL(sextante ./modeler ${PY_FILES})
6 changes: 3 additions & 3 deletions python/plugins/sextante/otb/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/outputs/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/outputs)
PLUGIN_INSTALL(sextante ./outputs ${PY_FILES})
2 changes: 1 addition & 1 deletion python/plugins/sextante/parameters/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/parameters)
PLUGIN_INSTALL(sextante ./parameters ${PY_FILES})
3 changes: 1 addition & 2 deletions python/plugins/sextante/pymorph/CMakeLists.txt
Expand Up @@ -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 changes: 1 addition & 1 deletion python/plugins/sextante/pymorph/html/CMakeLists.txt
Expand Up @@ -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})
8 changes: 1 addition & 7 deletions python/plugins/sextante/pymorph/html/morph/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/pymorph/scripts/CMakeLists.txt
@@ -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})
4 changes: 2 additions & 2 deletions python/plugins/sextante/r/CMakeLists.txt
@@ -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})
6 changes: 3 additions & 3 deletions python/plugins/sextante/saga/CMakeLists.txt
Expand Up @@ -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})
2 changes: 1 addition & 1 deletion python/plugins/sextante/script/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB PY_FILES *.py)

INSTALL(FILES ${PY_FILES} DESTINATION ${SEXTANTE_PLUGIN_DIR}/script)
PLUGIN_INSTALL(sextante ./script ${PY_FILES})
6 changes: 3 additions & 3 deletions python/plugins/sextante/taudem/CMakeLists.txt
Expand Up @@ -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.