Skip to content

Commit 8068572

Browse files
author
timlinux
committed
Install headers for 0.8.1 into $PREFIX/include/qgis so that 3rd party app writers done need qgis sources
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6647 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d70602e commit 8068572

File tree

2 files changed

+160
-0
lines changed

2 files changed

+160
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ IF (WIN32)
123123
SET (QGIS_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/qgis)
124124
SET (QGIS_PLUGIN_DIR ${CMAKE_INSTALL_PREFIX}/lib/qgis)
125125
SET (QGIS_SOURCE_DIR ${CMAKE_SOURCE_DIR})
126+
SET (QGIS_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/include)
126127

127128
SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--enable-runtime-pseudo-reloc")
128129
SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--enable-runtime-pseudo-reloc")
@@ -141,6 +142,7 @@ ELSE (WIN32)
141142
SET (QGIS_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/qgis)
142143
SET (QGIS_PLUGIN_DIR ${CMAKE_INSTALL_PREFIX}/lib/qgis)
143144
SET (QGIS_SOURCE_DIR ${CMAKE_SOURCE_DIR})
145+
SET (QGIS_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include/qgis")
144146

145147
IF (UNIX AND NOT APPLE)
146148
ADD_DEFINITIONS(-DPREFIX=\\"${CMAKE_INSTALL_PREFIX}\\")
@@ -173,6 +175,7 @@ ENDIF (WIN32)
173175
# create qgsconfig.h
174176

175177
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/qgsconfig.h.in_cmake ${CMAKE_BINARY_DIR}/qgsconfig.h)
178+
INSTALL(FILES ${CMAKE_BINARY_DIR}/qgsconfig.h DESTINATION ${QGIS_INCLUDE_DIR})
176179

177180
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
178181

src/core/CMakeLists.txt

+157
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,160 @@ ENDIF (POSTGRES_FOUND)
306306
INSTALL(TARGETS qgis_core
307307
RUNTIME DESTINATION ${QGIS_BIN_DIR}
308308
LIBRARY DESTINATION lib)
309+
310+
311+
312+
############################################################
313+
# Install headers
314+
SET(QGIS_CORE_HDRS
315+
qgis.h
316+
qgsapplication.h
317+
qgsbookmarkitem.h
318+
qgsclipper.h
319+
qgscolortable.h
320+
qgscontexthelp.h
321+
qgscustomsymbol.h
322+
qgsdatamanager.h
323+
qgsdatasource.h
324+
qgsdistancearea.h
325+
qgsexception.h
326+
qgsfeatureattribute.h
327+
qgsfeature.h
328+
qgsfield.h
329+
qgsgeometry.h
330+
qgsgeometryvertexindex.h
331+
qgshttptransaction.h
332+
qgslabelattributes.h
333+
qgsline.h
334+
qgslinesymbol.h
335+
qgslogger.h
336+
qgsmaptopixel.h
337+
qgsmarkercatalogue.h
338+
qgsmarkersymbol.h
339+
qgsnumericsortlistviewitem.h
340+
qgspluginitem.h
341+
qgspluginregistry.h
342+
../gui/qgspluginmetadata.h
343+
qgspoint.h
344+
qgspolygonsymbol.h
345+
qgsprojectproperty.h
346+
qgsprovidercountcalcevent.h
347+
qgsproviderextentcalcevent.h
348+
qgsprovidermetadata.h
349+
qgsproviderregistry.h
350+
qgsrangerenderitem.h
351+
qgsrasterdataprovider.h
352+
qgsrect.h
353+
qgsrenderer.h
354+
qgsrenderitem.h
355+
qgsscalecalculator.h
356+
qgssearchstring.h
357+
qgssearchtreenode.h
358+
qgssymbol.h
359+
qgssymbologyutils.h
360+
qgsvectordataprovider.h
361+
)
362+
363+
SET(QGIS_GUI_HDRS
364+
../gui/qgisapp.h
365+
../gui/qgisiface.h
366+
../gui/qgisinterface.h
367+
../gui/qgsabout.h
368+
../gui/qgsaddattrdialog.h
369+
../gui/qgsattributeaction.h
370+
../gui/qgsattributeactiondialog.h
371+
../gui/qgsattributedialog.h
372+
../gui/qgsattributetable.h
373+
../gui/qgsattributetabledisplay.h
374+
../gui/qgsbookmarks.h
375+
../gui/qgsclipboard.h
376+
../gui/qgscolorbutton.h
377+
../gui/qgscontinuouscolordialog.h
378+
../gui/qgscontinuouscolorrenderer.h
379+
../gui/qgscoordinatetransform.h
380+
../gui/qgscursors.h
381+
../gui/qgscustomprojectiondialog.h
382+
../gui/qgsdelattrdialog.h
383+
../gui/qgsencodingfiledialog.h
384+
../gui/qgsfillstylewidget.h
385+
../gui/qgsgeomtypedialog.h
386+
../gui/qgsgraduatedsymboldialog.h
387+
../gui/qgsgraduatedsymbolrenderer.h
388+
../gui/qgshelpviewer.h
389+
../gui/qgsidentifyresults.h
390+
../gui/qgslabel.h
391+
../gui/qgslabeldialog.h
392+
../gui/qgslayerprojectionselector.h
393+
../gui/qgslinestyledialog.h
394+
../gui/qgslinestylewidget.h
395+
../gui/qgsludialog.h
396+
../gui/qgsmapcanvas.h
397+
../gui/qgsmapcanvasitem.h
398+
../gui/qgsmapcanvasmap.h
399+
../gui/qgsmaplayer.h
400+
../gui/qgsmaplayerregistry.h
401+
../gui/qgsmaplayerset.h
402+
../gui/qgsmapoverviewcanvas.h
403+
../gui/qgsmaprender.h
404+
../gui/qgsmaptoolcapture.h
405+
../gui/qgsmaptool.h
406+
../gui/qgsmaptoolidentify.h
407+
../gui/qgsmaptoolpan.h
408+
../gui/qgsmaptoolselect.h
409+
../gui/qgsmaptoolvertexedit.h
410+
../gui/qgsmaptoolzoom.h
411+
../gui/qgsmarkerdialog.h
412+
../gui/qgsmeasure.h
413+
../gui/qgsmessageviewer.h
414+
../gui/qgsnewhttpconnection.h
415+
../gui/qgsoptions.h
416+
../gui/qgspastetransformations.h
417+
../gui/qgspatterndialog.h
418+
../gui/qgspluginmanager.h
419+
../gui/qgspointstylewidget.h
420+
../gui/qgsproject.h
421+
../gui/qgsprojectproperties.h
422+
../gui/qgsrasterlayerproperties.h
423+
../gui/qgsrubberband.h
424+
../gui/qgsrunprocess.h
425+
../gui/qgssearchquerybuilder.h
426+
../gui/qgsserversourceselect.h
427+
../gui/qgssinglesymboldialog.h
428+
../gui/qgssinglesymbolrenderer.h
429+
../gui/qgsspatialrefsys.h
430+
../gui/qgsuniquevaluedialog.h
431+
../gui/qgsuniquevaluerenderer.h
432+
../gui/qgsvectorfilewriter.h
433+
../gui/qgsvectorlayer.h
434+
../gui/qgsvectorlayerproperties.h
435+
../gui/qgsvertexmarker.h
436+
../widgets/projectionselector/qgsprojectionselector.h
437+
438+
../composer/qgscomposer.h
439+
../composer/qgscomposeritem.h
440+
../composer/qgscomposerlabel.h
441+
../composer/qgscomposermap.h
442+
../composer/qgscomposerpicture.h
443+
../composer/qgscomposerscalebar.h
444+
../composer/qgscomposervectorlegend.h
445+
../composer/qgscomposerview.h
446+
../composer/qgscomposition.h
447+
448+
../legend/qgslegend.h
449+
../legend/qgslegendgroup.h
450+
../legend/qgslegenditem.h
451+
../legend/qgslegendlayer.h
452+
../legend/qgslegendlayerfile.h
453+
../legend/qgslegendlayerfilegroup.h
454+
../legend/qgslegendpropertygroup.h
455+
../legend/qgslegendpropertyitem.h
456+
../legend/qgslegendsymbologygroup.h
457+
../legend/qgslegendsymbologyitem.h
458+
../legend/qgslegendvectorsymbologyitem.h
459+
460+
../raster/qgsrasterlayer.h
461+
462+
)
463+
464+
INSTALL(CODE "MESSAGE(\"Installing headers...\")")
465+
INSTALL(FILES ${QGIS_CORE_HDRS} ${QGIS_GUI_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})

0 commit comments

Comments
 (0)