Skip to content

Commit b942557

Browse files
committedJul 5, 2011
Install globe.earth in QGIS_DATA_DIR/globe
1 parent b2f62df commit b942557

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
 

‎src/plugins/globe/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,6 @@ TARGET_LINK_LIBRARIES(globeplugin
6666
INSTALL(TARGETS globeplugin
6767
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
6868
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})
69+
70+
INSTALL (FILES globe.earth
71+
DESTINATION ${QGIS_DATA_DIR}/globe)

‎src/plugins/globe/globe_plugin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <qgisinterface.h>
2424
#include <qgisgui.h>
2525
#include <qgslogger.h>
26+
#include <qgsapplication.h>
2627
#include <qgsmapcanvas.h>
2728

2829
#include <QAction>
@@ -102,7 +103,7 @@ void GlobePlugin::run()
102103

103104
// read base layers from earth file
104105
EarthFile earthFile;
105-
if ( !earthFile.readXML( "/home/pi/devel/gis/qgis/src/plugins/globe/globe.earth" ) )
106+
if ( !earthFile.readXML( QString("%1/%2").arg(QgsApplication::pkgDataPath()).arg("globe/globe.earth").toStdString() ) )
106107
{
107108
return;
108109
}

0 commit comments

Comments
 (0)
Please sign in to comment.