Skip to content

Commit

Permalink
Install headers for 0.8.1 into $PREFIX/include/qgis so that 3rd party…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
timlinux committed Feb 21, 2007
1 parent d70602e commit 8068572
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ IF (WIN32)
SET (QGIS_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/qgis)
SET (QGIS_PLUGIN_DIR ${CMAKE_INSTALL_PREFIX}/lib/qgis)
SET (QGIS_SOURCE_DIR ${CMAKE_SOURCE_DIR})
SET (QGIS_INCLUDE_DIR ${CMAKE_INSTALL_PREFIX}/include)

SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--enable-runtime-pseudo-reloc")
SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--enable-runtime-pseudo-reloc")
Expand All @@ -141,6 +142,7 @@ ELSE (WIN32)
SET (QGIS_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/qgis)
SET (QGIS_PLUGIN_DIR ${CMAKE_INSTALL_PREFIX}/lib/qgis)
SET (QGIS_SOURCE_DIR ${CMAKE_SOURCE_DIR})
SET (QGIS_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include/qgis")

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

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

INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})

Expand Down
157 changes: 157 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,160 @@ ENDIF (POSTGRES_FOUND)
INSTALL(TARGETS qgis_core
RUNTIME DESTINATION ${QGIS_BIN_DIR}
LIBRARY DESTINATION lib)



############################################################
# Install headers
SET(QGIS_CORE_HDRS
qgis.h
qgsapplication.h
qgsbookmarkitem.h
qgsclipper.h
qgscolortable.h
qgscontexthelp.h
qgscustomsymbol.h
qgsdatamanager.h
qgsdatasource.h
qgsdistancearea.h
qgsexception.h
qgsfeatureattribute.h
qgsfeature.h
qgsfield.h
qgsgeometry.h
qgsgeometryvertexindex.h
qgshttptransaction.h
qgslabelattributes.h
qgsline.h
qgslinesymbol.h
qgslogger.h
qgsmaptopixel.h
qgsmarkercatalogue.h
qgsmarkersymbol.h
qgsnumericsortlistviewitem.h
qgspluginitem.h
qgspluginregistry.h
../gui/qgspluginmetadata.h
qgspoint.h
qgspolygonsymbol.h
qgsprojectproperty.h
qgsprovidercountcalcevent.h
qgsproviderextentcalcevent.h
qgsprovidermetadata.h
qgsproviderregistry.h
qgsrangerenderitem.h
qgsrasterdataprovider.h
qgsrect.h
qgsrenderer.h
qgsrenderitem.h
qgsscalecalculator.h
qgssearchstring.h
qgssearchtreenode.h
qgssymbol.h
qgssymbologyutils.h
qgsvectordataprovider.h
)

SET(QGIS_GUI_HDRS
../gui/qgisapp.h
../gui/qgisiface.h
../gui/qgisinterface.h
../gui/qgsabout.h
../gui/qgsaddattrdialog.h
../gui/qgsattributeaction.h
../gui/qgsattributeactiondialog.h
../gui/qgsattributedialog.h
../gui/qgsattributetable.h
../gui/qgsattributetabledisplay.h
../gui/qgsbookmarks.h
../gui/qgsclipboard.h
../gui/qgscolorbutton.h
../gui/qgscontinuouscolordialog.h
../gui/qgscontinuouscolorrenderer.h
../gui/qgscoordinatetransform.h
../gui/qgscursors.h
../gui/qgscustomprojectiondialog.h
../gui/qgsdelattrdialog.h
../gui/qgsencodingfiledialog.h
../gui/qgsfillstylewidget.h
../gui/qgsgeomtypedialog.h
../gui/qgsgraduatedsymboldialog.h
../gui/qgsgraduatedsymbolrenderer.h
../gui/qgshelpviewer.h
../gui/qgsidentifyresults.h
../gui/qgslabel.h
../gui/qgslabeldialog.h
../gui/qgslayerprojectionselector.h
../gui/qgslinestyledialog.h
../gui/qgslinestylewidget.h
../gui/qgsludialog.h
../gui/qgsmapcanvas.h
../gui/qgsmapcanvasitem.h
../gui/qgsmapcanvasmap.h
../gui/qgsmaplayer.h
../gui/qgsmaplayerregistry.h
../gui/qgsmaplayerset.h
../gui/qgsmapoverviewcanvas.h
../gui/qgsmaprender.h
../gui/qgsmaptoolcapture.h
../gui/qgsmaptool.h
../gui/qgsmaptoolidentify.h
../gui/qgsmaptoolpan.h
../gui/qgsmaptoolselect.h
../gui/qgsmaptoolvertexedit.h
../gui/qgsmaptoolzoom.h
../gui/qgsmarkerdialog.h
../gui/qgsmeasure.h
../gui/qgsmessageviewer.h
../gui/qgsnewhttpconnection.h
../gui/qgsoptions.h
../gui/qgspastetransformations.h
../gui/qgspatterndialog.h
../gui/qgspluginmanager.h
../gui/qgspointstylewidget.h
../gui/qgsproject.h
../gui/qgsprojectproperties.h
../gui/qgsrasterlayerproperties.h
../gui/qgsrubberband.h
../gui/qgsrunprocess.h
../gui/qgssearchquerybuilder.h
../gui/qgsserversourceselect.h
../gui/qgssinglesymboldialog.h
../gui/qgssinglesymbolrenderer.h
../gui/qgsspatialrefsys.h
../gui/qgsuniquevaluedialog.h
../gui/qgsuniquevaluerenderer.h
../gui/qgsvectorfilewriter.h
../gui/qgsvectorlayer.h
../gui/qgsvectorlayerproperties.h
../gui/qgsvertexmarker.h
../widgets/projectionselector/qgsprojectionselector.h

../composer/qgscomposer.h
../composer/qgscomposeritem.h
../composer/qgscomposerlabel.h
../composer/qgscomposermap.h
../composer/qgscomposerpicture.h
../composer/qgscomposerscalebar.h
../composer/qgscomposervectorlegend.h
../composer/qgscomposerview.h
../composer/qgscomposition.h

../legend/qgslegend.h
../legend/qgslegendgroup.h
../legend/qgslegenditem.h
../legend/qgslegendlayer.h
../legend/qgslegendlayerfile.h
../legend/qgslegendlayerfilegroup.h
../legend/qgslegendpropertygroup.h
../legend/qgslegendpropertyitem.h
../legend/qgslegendsymbologygroup.h
../legend/qgslegendsymbologyitem.h
../legend/qgslegendvectorsymbologyitem.h

../raster/qgsrasterlayer.h

)

INSTALL(CODE "MESSAGE(\"Installing headers...\")")
INSTALL(FILES ${QGIS_CORE_HDRS} ${QGIS_GUI_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})

0 comments on commit 8068572

Please sign in to comment.