@@ -152,18 +152,12 @@ IF(WIN32)
152
152
gps/qextserialport/win_qextserialport.cpp
153
153
)
154
154
ADD_DEFINITIONS (-D_TTY_WIN_ )
155
- TARGET_LINK_LIBRARIES (qgis_core setupapi )
156
155
ELSE (WIN32 )
157
156
SET (QGIS_CORE_SRCS
158
157
${QGIS_CORE_SRCS}
159
158
gps/qextserialport/posix_qextserialport.cpp
160
159
)
161
160
ADD_DEFINITIONS (-D_TTY_POSIX_ )
162
-
163
- IF (APPLE )
164
- FIND_LIBRARY (IOKIT_LIBRARY IOKit )
165
- TARGET_LINK_LIBRARIES (qgis_core ${IOKIT_LIBRARY ))
166
- ENDIF (APPLE )
167
161
ENDIF (WIN32 )
168
162
169
163
IF (WITH_INTERNAL_SPATIALITE )
@@ -218,36 +212,38 @@ SET_SOURCE_FILES_PROPERTIES(
218
212
ENDIF (MSVC AND PEDANTIC )
219
213
220
214
SET (QGIS_CORE_MOC_HDRS
215
+ qgsapplication.h
216
+ qgscontexthelp.h
217
+ qgscoordinatetransform.h
218
+ qgsdataprovider.h
219
+ qgshttptransaction.h
220
+ qgsmaplayer.h
221
+ qgsmaplayerregistry.h
222
+ qgsmaprenderer.h
223
+ qgsmessageoutput.h
224
+ qgsproject.h
225
+ qgsrunprocess.h
226
+ qgsvectorlayer.h
227
+ qgsrasterdataprovider.h
221
228
222
- qgsapplication.h
223
- qgscontexthelp.h
224
- qgscoordinatetransform.h
225
- qgsdataprovider.h
226
- qgshttptransaction.h
227
- qgsmaplayer.h
228
- qgsmaplayerregistry.h
229
- qgsmaprenderer.h
230
- qgsmessageoutput.h
231
- qgsproject.h
232
- qgsrunprocess.h
233
- qgsvectorlayer.h
234
- qgsrasterdataprovider.h
235
- composer/qgscomposerlegend.h
236
- composer/qgscomposermap.h
237
- composer/qgscomposerpicture.h
238
- composer/qgscomposerscalebar.h
239
- composer/qgscomposeritem.h
240
- composer/qgscomposeritemgroup.h
241
- composer/qgscomposershape.h
242
- composer/qgscomposertable.h
243
- composer/qgscomposition.h
244
- composer/qgslegendmodel.h
245
- gps/qgsgpsconnection.h
246
- gps/qgsnmeaconnection.h
247
- gps/qextserialport/qextserialenumerator.h
248
- gps/qextserialport/qextserialport.h
249
- symbology/qgsmarkercatalogue.h
250
- raster/qgsrasterlayer.h
229
+ composer/qgscomposerlegend.h
230
+ composer/qgscomposermap.h
231
+ composer/qgscomposerpicture.h
232
+ composer/qgscomposerscalebar.h
233
+ composer/qgscomposeritem.h
234
+ composer/qgscomposeritemgroup.h
235
+ composer/qgscomposershape.h
236
+ composer/qgscomposertable.h
237
+ composer/qgscomposition.h
238
+
239
+ composer/qgslegendmodel.h
240
+ symbology/qgsmarkercatalogue.h
241
+ raster/qgsrasterlayer.h
242
+
243
+ gps/qgsgpsconnection.h
244
+ gps/qgsnmeaconnection.h
245
+ gps/qextserialport/qextserialport.h
246
+ gps/qextserialport/qextserialenumerator.h
251
247
)
252
248
253
249
QT4_WRAP_CPP (QGIS_CORE_MOC_SRCS ${QGIS_CORE_MOC_HDRS} )
@@ -321,13 +317,15 @@ ADD_DEPENDENCIES(qgis_core svnversion)
321
317
322
318
# because of htonl
323
319
IF (WIN32 )
324
- TARGET_LINK_LIBRARIES (qgis_core wsock32 )
325
- IF (MSVC )
326
- # needed for linking to gdal which needs odbc
327
- # TARGET_LINK_LIBRARIES(qgis_core odbc32 odbccp32)
328
- ENDIF (MSVC )
320
+ FIND_LIBRARY (SETUPAPI_LIBRARY setupapi )
321
+ TARGET_LINK_LIBRARIES (qgis_core wsock32 ${SETUPAPI_LIBRARY} )
329
322
ENDIF (WIN32 )
330
323
324
+ IF (APPLE )
325
+ FIND_LIBRARY (IOKIT_LIBRARY IOKit )
326
+ TARGET_LINK_LIBRARIES (qgis_core ${IOKIT_LIBRARY} )
327
+ ENDIF (APPLE )
328
+
331
329
TARGET_LINK_LIBRARIES (qgis_core
332
330
${QT_QTMAIN_LIBRARY}
333
331
${QT_QTXML_LIBRARY}
0 commit comments