Skip to content

Commit

Permalink
fix missing python uis in osm plugin
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11384 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 14, 2009
1 parent 7085cf5 commit 10d1a0e
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 1,053 deletions.
20 changes: 20 additions & 0 deletions python/plugins/osm/CMakeLists.txt
Expand Up @@ -3,11 +3,31 @@

SET (OSM_PLUGIN_DIR ${QGIS_DATA_DIR}/python/plugins/osm)

FIND_PROGRAM(PYUIC4_PROGRAM pyuic4)

MACRO(PYQT4_WRAP_UI outfiles)
FOREACH(it ${ARGN})
GET_FILENAME_COMPONENT(out ${it} NAME_WE)
SET(out ${CMAKE_CURRENT_BINARY_DIR}/${out}_ui.py)
ADD_CUSTOM_COMMAND(
COMMAND ${PYUIC4_PROGRAM} ${it} -o ${out}
DEPENDS ${it}
OUTPUT ${out}
)
SET(${outfiles} ${${outfiles}} ${out})
ENDFOREACH(it)
ENDMACRO(PYQT_WRAP_UI)

FILE (GLOB UI_FILES ui_files/*.ui)
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})

ADD_CUSTOM_TARGET(pyuis ALL DEPENDS ${PYUI_FILES})

FILE (GLOB PYTHON_FILES *.py)
FILE (GLOB MAPTOOLS_PYTHON_FILES map_tools/*.py)
FILE (GLOB STYLE_FILES styles/*.style)

INSTALL (FILES ${PYTHON_FILES} DESTINATION ${OSM_PLUGIN_DIR})
INSTALL (FILES ${PYUI_FILES} DESTINATION ${OSM_PLUGIN_DIR})
INSTALL (FILES ${MAPTOOLS_PYTHON_FILES} DESTINATION ${OSM_PLUGIN_DIR}/map_tools)
INSTALL (FILES ${STYLE_FILES} DESTINATION ${OSM_PLUGIN_DIR}/styles)
140 changes: 0 additions & 140 deletions python/plugins/osm/DlgAddRelation_ui.py

This file was deleted.

162 changes: 0 additions & 162 deletions python/plugins/osm/DlgDownloadOSM_ui.py

This file was deleted.

0 comments on commit 10d1a0e

Please sign in to comment.