Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow running osm plugin from build dir
- Loading branch information
Sandro Santilli
committed
Oct 23, 2012
1 parent
9a0c4ff
commit 9f1351b
Showing
1 changed file
with
3 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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) |