Skip to content
Permalink
Browse files

fix missing python uis in osm plugin

git-svn-id: http://svn.osgeo.org/qgis/trunk@11384 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Aug 14, 2009
1 parent 7085cf5 commit 10d1a0e283ed46ca12fb3a51106a64abaf85feb6
@@ -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)

This file was deleted.

This file was deleted.

0 comments on commit 10d1a0e

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