Skip to content

Commit 4c0f066

Browse files
author
jef
committedJan 11, 2010
fix r12732
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12733 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

3 files changed

+41
-40
lines changed

3 files changed

+41
-40
lines changed
 

‎src/core/CMakeLists.txt

Lines changed: 38 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,12 @@ IF(WIN32)
152152
gps/qextserialport/win_qextserialport.cpp
153153
)
154154
ADD_DEFINITIONS(-D_TTY_WIN_)
155-
TARGET_LINK_LIBRARIES(qgis_core setupapi)
156155
ELSE(WIN32)
157156
SET(QGIS_CORE_SRCS
158157
${QGIS_CORE_SRCS}
159158
gps/qextserialport/posix_qextserialport.cpp
160159
)
161160
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)
167161
ENDIF(WIN32)
168162

169163
IF (WITH_INTERNAL_SPATIALITE)
@@ -218,36 +212,38 @@ SET_SOURCE_FILES_PROPERTIES(
218212
ENDIF (MSVC AND PEDANTIC)
219213

220214
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
221228

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
251247
)
252248

253249
QT4_WRAP_CPP(QGIS_CORE_MOC_SRCS ${QGIS_CORE_MOC_HDRS})
@@ -321,13 +317,15 @@ ADD_DEPENDENCIES(qgis_core svnversion)
321317

322318
# because of htonl
323319
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})
329322
ENDIF (WIN32)
330323

324+
IF(APPLE)
325+
FIND_LIBRARY(IOKIT_LIBRARY IOKit)
326+
TARGET_LINK_LIBRARIES(qgis_core ${IOKIT_LIBRARY})
327+
ENDIF(APPLE)
328+
331329
TARGET_LINK_LIBRARIES(qgis_core
332330
${QT_QTMAIN_LIBRARY}
333331
${QT_QTXML_LIBRARY}

‎src/core/gps/qextserialport/qextserialenumerator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ struct QextPortInfo {
3434
int productID; ///< Product ID
3535
};
3636

37+
#undef QT_GUI_LIB
38+
3739
#ifdef Q_OS_WIN
3840
#ifdef QT_GUI_LIB
3941
#include <QWidget>

‎src/core/gps/qgsgpsconnection.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <QCoreApplication>
2121
#include <QTime>
2222
#include <QIODevice>
23+
#include <QStringList>
2324

2425
#include "qextserialport.h"
2526
#include "qextserialenumerator.h"

0 commit comments

Comments
 (0)
Please sign in to comment.