Skip to content

Commit

Permalink
Allow running osm plugin from build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Santilli committed Oct 23, 2012
1 parent 9a0c4ff commit 9f1351b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions 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) FILE (GLOB UI_FILES ui_files/*.ui)
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES}) PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES})
PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc) PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc)
ADD_CUSTOM_TARGET(osmplugin ALL DEPENDS ${PYUI_FILES} ${PYRC_FILES})


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


INSTALL (FILES ${PYTHON_FILES} DESTINATION ${OSM_PLUGIN_DIR}) PLUGIN_INSTALL (osm . ${PYTHON_FILES} ${PYUI_FILES} ${PYRC_FILES})
INSTALL (FILES ${PYUI_FILES} DESTINATION ${OSM_PLUGIN_DIR}) PLUGIN_INSTALL (osm map_tools ${MAPTOOLS_PYTHON_FILES})
INSTALL (FILES ${PYRC_FILES} DESTINATION ${OSM_PLUGIN_DIR}) PLUGIN_INSTALL (osm styles ${STYLE_FILES})
INSTALL (FILES ${MAPTOOLS_PYTHON_FILES} DESTINATION ${OSM_PLUGIN_DIR}/map_tools)
INSTALL (FILES ${STYLE_FILES} DESTINATION ${OSM_PLUGIN_DIR}/styles)

0 comments on commit 9f1351b

Please sign in to comment.