Skip to content
Permalink
Browse files

Allow running osm plugin from build dir

  • Loading branch information
Sandro Santilli
Sandro Santilli committed Oct 23, 2012
1 parent 9a0c4ff commit 9f1351b08b957f76a570d80c2338ec691550d1a2
Showing with 3 additions and 7 deletions.
  1. +3 −7 python/plugins/osm/CMakeLists.txt
@@ -1,16 +1,12 @@
SET (OSM_PLUGIN_DIR ${QGIS_DATA_DIR}/python/plugins/osm)

FILE (GLOB UI_FILES ui_files/*.ui)
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc)
ADD_CUSTOM_TARGET(osmplugin ALL DEPENDS ${PYUI_FILES} ${PYRC_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 ${PYRC_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)
PLUGIN_INSTALL (osm . ${PYTHON_FILES} ${PYUI_FILES} ${PYRC_FILES})
PLUGIN_INSTALL (osm map_tools ${MAPTOOLS_PYTHON_FILES})
PLUGIN_INSTALL (osm styles ${STYLE_FILES})

0 comments on commit 9f1351b

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