Skip to content

Commit 130fa6b

Browse files
author
timlinux
committed
Install core headers on make install
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6481 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 295aa3b commit 130fa6b

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ ELSE (WIN32)
136136
SET (QGIS_BIN_DIR ${CMAKE_INSTALL_PREFIX}/bin)
137137
SET (QGIS_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/qgis)
138138
SET (QGIS_PLUGIN_DIR ${CMAKE_INSTALL_PREFIX}/lib/qgis)
139+
SET(QGIS_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/include/qgis")
140+
139141

140142
IF (UNIX AND NOT APPLE)
141143
ADD_DEFINITIONS(-DPREFIX=\\"${CMAKE_INSTALL_PREFIX}\\")

src/core/CMakeLists.txt

+68
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,71 @@ TARGET_LINK_LIBRARIES(qgis_core
154154
INSTALL(TARGETS qgis_core
155155
RUNTIME DESTINATION ${QGIS_BIN_DIR}
156156
LIBRARY DESTINATION lib)
157+
158+
159+
# Added by Tim to install headers
160+
161+
SET(QGIS_CORE_HDRS
162+
qgis.h
163+
qgsapplication.h
164+
qgsattributeaction.h
165+
qgsclipper.h
166+
qgscontexthelp.h
167+
qgscoordinatetransform.h
168+
qgsdatasourceuri.h
169+
qgsdistancearea.h
170+
qgsexception.h
171+
qgsfeature.h
172+
qgsfeatureattribute.h
173+
qgsfield.h
174+
qgsgeometry.h
175+
qgsgeometryvertexindex.h
176+
qgshttptransaction.h
177+
qgslabel.h
178+
qgslabelattributes.h
179+
qgsline.h
180+
qgslogger.h
181+
qgsmaplayer.h
182+
qgsmaplayerregistry.h
183+
qgsmaprender.h
184+
qgsmaptopixel.h
185+
qgsmessageoutput.h
186+
qgspoint.h
187+
qgsproject.h
188+
qgsprojectproperty.h
189+
qgsprovidercountcalcevent.h
190+
qgsproviderextentcalcevent.h
191+
qgsprovidermetadata.h
192+
qgsproviderregistry.h
193+
qgsrasterdataprovider.h
194+
qgsrect.h
195+
qgsrunprocess.h
196+
qgsscalecalculator.h
197+
qgssearchstring.h
198+
qgssearchtreenode.h
199+
qgsspatialrefsys.h
200+
qgsvectordataprovider.h
201+
qgsvectorfilewriter.h
202+
qgsvectorlayer.h
203+
204+
raster/qgscolortable.h
205+
raster/qgsrasterlayer.h
206+
207+
renderer/qgscontinuouscolorrenderer.h
208+
renderer/qgsgraduatedsymbolrenderer.h
209+
renderer/qgsrenderer.h
210+
renderer/qgssinglesymbolrenderer.h
211+
renderer/qgsuniquevaluerenderer.h
212+
213+
symbology/qgslinesymbol.h
214+
symbology/qgsmarkercatalogue.h
215+
symbology/qgsmarkersymbol.h
216+
symbology/qgspolygonsymbol.h
217+
symbology/qgssymbol.h
218+
symbology/qgssymbologyutils.h
219+
220+
spatialindex/qgsspatialindex.h
221+
)
222+
223+
INSTALL(CODE "MESSAGE(\"Installing headers...\")")
224+
INSTALL(FILES ${QGIS_CORE_HDRS} DESTINATION ${QGIS_INCLUDE_DIR})

0 commit comments

Comments
 (0)