-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a PLUGIN_INSTALL cmake macro and use it from db_manager plugin
One step forward toward closing http://hub.qgis.org/issues/5879 Next all pugins should be converted to use of the macro...
- Loading branch information
Sandro Santilli
committed
Oct 19, 2012
1 parent
d6b155f
commit 8ca2236
Showing
11 changed files
with
37 additions
and
39 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
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
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
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
SET (DB_MANAGER_POSTGIS_DIR ${DB_MANAGER_PLUGIN_DIR}/db_plugins/postgis) | ||
|
||
FILE(GLOB PY_FILES *.py) | ||
FILE(GLOB ICON_FILES icons/*.png) | ||
|
||
PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc) | ||
ADD_CUSTOM_TARGET(db_manager_postgis ALL DEPENDS ${PYRC_FILES}) | ||
|
||
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_POSTGIS_DIR}) | ||
INSTALL(FILES ${PYRC_FILES} DESTINATION ${DB_MANAGER_POSTGIS_DIR}) | ||
INSTALL(FILES ${ICON_FILES} DESTINATION ${DB_MANAGER_POSTGIS_DIR}/icons) | ||
PLUGIN_INSTALL(db_manager db_plugins/postgis ${PY_FILES} ${PYRC_FILES}) | ||
PLUGIN_INSTALL(db_manager db_plugins/postgis/icons ${ICON_FILES}) | ||
|
||
ADD_SUBDIRECTORY(plugins) | ||
|
4 changes: 2 additions & 2 deletions
4
python/plugins/db_manager/db_plugins/postgis/plugins/CMakeLists.txt
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
INSTALL(FILES __init__.py DESTINATION ${DB_MANAGER_POSTGIS_DIR}/plugins) | ||
|
||
ADD_SUBDIRECTORY(qgis_topoview) | ||
ADD_SUBDIRECTORY(versioning) | ||
|
||
PLUGIN_INSTALL(db_manager db_plugins/postgis/plugins __init__.py) |
6 changes: 2 additions & 4 deletions
6
python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/CMakeLists.txt
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
SET (DB_MANAGER_POSTGIS_TOPOVIEW_DIR ${DB_MANAGER_POSTGIS_DIR}/plugins/qgis_topoview) | ||
|
||
FILE(GLOB PY_FILES *.py) | ||
|
||
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_POSTGIS_TOPOVIEW_DIR}) | ||
|
||
ADD_SUBDIRECTORY(templates) | ||
|
||
PLUGIN_INSTALL(db_manager db_plugins/postgis/plugins/qgis_topoview ${PY_FILES}) |
3 changes: 1 addition & 2 deletions
3
python/plugins/db_manager/db_plugins/postgis/plugins/qgis_topoview/templates/CMakeLists.txt
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
SET (DB_MANAGER_POSTGIS_TOPOVIEW_TEMPLATE_DIR ${DB_MANAGER_POSTGIS_DIR}/plugins/qgis_topoview/templates) | ||
|
||
FILE(GLOB QML_FILES *.qml) | ||
|
||
INSTALL(FILES ${QML_FILES} DESTINATION ${DB_MANAGER_POSTGIS_TOPOVIEW_TEMPLATE_DIR}) | ||
PLUGIN_INSTALL(db_manager db_plugins/postgis/plugins/qgis_topoview/templates ${QML_FILES}) |
9 changes: 1 addition & 8 deletions
9
python/plugins/db_manager/db_plugins/postgis/plugins/versioning/CMakeLists.txt
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
SET (DB_MANAGER_POSTGIS_VERSIONING_DIR ${DB_MANAGER_POSTGIS_DIR}/plugins/versioning) | ||
|
||
FILE(GLOB PY_FILES *.py) | ||
|
||
FILE(GLOB UI_FILES *.ui) | ||
PYQT4_WRAP_UI(PYUI_FILES ${UI_FILES}) | ||
ADD_CUSTOM_TARGET(db_manager_postgis_versioning ALL DEPENDS ${PYUI_FILES}) | ||
|
||
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_POSTGIS_VERSIONING_DIR}) | ||
INSTALL(FILES ${PYUI_FILES} DESTINATION ${DB_MANAGER_POSTGIS_VERSIONING_DIR}) | ||
|
||
PLUGIN_INSTALL(db_manager db_plugins/postgis/plugins/versioning ${PY_FILES} ${PYUI_FILES}) |
8 changes: 3 additions & 5 deletions
8
python/plugins/db_manager/db_plugins/spatialite/CMakeLists.txt
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
SET (DB_MANAGER_SPATIALITE_DIR ${DB_MANAGER_PLUGIN_DIR}/db_plugins/spatialite) | ||
|
||
FILE(GLOB PY_FILES *.py) | ||
FILE(GLOB ICON_FILES icons/*.png) | ||
|
||
PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc) | ||
ADD_CUSTOM_TARGET(db_manager_spatialite ALL DEPENDS ${PYRC_FILES}) | ||
|
||
INSTALL(FILES ${PY_FILES} DESTINATION ${DB_MANAGER_SPATIALITE_DIR}) | ||
INSTALL(FILES ${PYRC_FILES} DESTINATION ${DB_MANAGER_SPATIALITE_DIR}) | ||
INSTALL(FILES ${ICON_FILES} DESTINATION ${DB_MANAGER_SPATIALITE_DIR}/icons) | ||
PLUGIN_INSTALL(db_manager db_plugins/spatialite ${PY_FILES} ${PYRC_FILES}) | ||
PLUGIN_INSTALL(db_manager db_plugins/spatialite/icons ${ICON_FILES}) | ||
|
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
FILE(GLOB ICON_FILES *.png *.xpm toolbar/*.png) | ||
INSTALL(FILES ${ICON_FILES} DESTINATION ${DB_MANAGER_PLUGIN_DIR}/icons) | ||
|
||
PLUGIN_INSTALL(db_manager icons ${ICON_FILES}) |