File tree Expand file tree Collapse file tree 5 files changed +27
-17
lines changed
Expand file tree Collapse file tree 5 files changed +27
-17
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ IF (WITH_GRASS)
3939 SET (GRASS_PREFIX ${GRASS_PREFIX} CACHE PATH "Path to GRASS base directory" )
4040ENDIF (WITH_GRASS)
4141
42+ SET (WITH_DESKTOP TRUE CACHE BOOL "Determines whether QGIS desktop should be built" )
43+
4244# mapserver by us disabled default because it needs FastCGI (which is optional dependency)
4345SET (WITH_MAPSERVER FALSE CACHE BOOL "Determines whether QGIS mapserver should be built" )
4446
@@ -134,8 +136,6 @@ ENDIF(NOT WIN32 AND NOT ANDROID)
134136
135137# required
136138FIND_PACKAGE (Proj)
137- FIND_PACKAGE (Expat) # GPS importer plugin
138- FIND_PACKAGE (GSL) # Georeferencer
139139FIND_PACKAGE (GEOS)
140140FIND_PACKAGE (GDAL)
141141
@@ -186,7 +186,9 @@ SET(QT_USE_QTXML 1)
186186SET (QT_USE_QTNETWORK 1)
187187SET (QT_USE_QTSVG 1)
188188SET (QT_USE_QTSQL 1)
189- SET (QT_USE_QTWEBKIT 1)
189+ IF (WITH_DESKTOP)
190+ SET (QT_USE_QTWEBKIT 1)
191+ ENDIF (WITH_DESKTOP)
190192
191193IF (NOT QT_QTXML_FOUND OR NOT QT_QTNETWORK_FOUND OR NOT QT_QTSVG_FOUND OR NOT QT_QTSQL_FOUND OR NOT QT_QTWEBKIT_FOUND)
192194 MESSAGE (SEND_ERROR "Some Qt4 modules haven't been found!" )
Original file line number Diff line number Diff line change @@ -2,12 +2,15 @@ ADD_SUBDIRECTORY(core)
22ADD_SUBDIRECTORY (analysis)
33ADD_SUBDIRECTORY (ui)
44ADD_SUBDIRECTORY (gui)
5- ADD_SUBDIRECTORY (app)
65ADD_SUBDIRECTORY (providers)
7- ADD_SUBDIRECTORY (plugins)
8- ADD_SUBDIRECTORY (helpviewer)
96ADD_SUBDIRECTORY (crssync)
10- ADD_SUBDIRECTORY (browser)
7+
8+ IF (WITH_DESKTOP)
9+ ADD_SUBDIRECTORY (app)
10+ ADD_SUBDIRECTORY (helpviewer)
11+ ADD_SUBDIRECTORY (browser)
12+ ADD_SUBDIRECTORY (plugins)
13+ ENDIF (WITH_DESKTOP)
1114
1215IF (WITH_BINDINGS)
1316 ADD_SUBDIRECTORY (python)
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ ADD_SUBDIRECTORY(spatialquery)
1414ADD_SUBDIRECTORY (sqlanywhere)
1515ADD_SUBDIRECTORY (roadgraph)
1616ADD_SUBDIRECTORY (zonal_statistics)
17+ ADD_SUBDIRECTORY (georeferencer)
18+ ADD_SUBDIRECTORY (gps_importer)
1719
1820IF (WITH_SPATIALITE)
1921 ADD_SUBDIRECTORY (offline_editing)
@@ -23,20 +25,12 @@ IF (POSTGRES_FOUND)
2325 ADD_SUBDIRECTORY (spit)
2426ENDIF (POSTGRES_FOUND)
2527
26- IF (EXPAT_FOUND)
27- ADD_SUBDIRECTORY (gps_importer)
28- ENDIF (EXPAT_FOUND)
29-
30- IF (GSL_FOUND)
31- ADD_SUBDIRECTORY (georeferencer)
32- ENDIF (GSL_FOUND)
33-
3428IF (GRASS_FOUND)
3529 ADD_SUBDIRECTORY (grass)
3630ENDIF (GRASS_FOUND)
3731
38- IF (OSGEARTH_FOUND )
32+ IF (WITH_GLOBE )
3933 ADD_SUBDIRECTORY (globe)
40- ENDIF (OSGEARTH_FOUND )
34+ ENDIF (WITH_GLOBE )
4135
4236# headers installed in qgis_core target
Original file line number Diff line number Diff line change 1+ FIND_PACKAGE (GSL) # Georeferencer
2+
3+ IF (GSL_FOUND)
4+
15########################################################
26# Files
37
@@ -91,3 +95,5 @@ TARGET_LINK_LIBRARIES(georefplugin
9195INSTALL (TARGETS georefplugin
9296 RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
9397 LIBRARY DESTINATION ${QGIS_PLUGIN_DIR} )
98+
99+ ENDIF (GSL_FOUND)
Original file line number Diff line number Diff line change 1+ FIND_PACKAGE (Expat) # GPS importer plugin
2+
3+ IF (EXPAT_FOUND)
14
25########################################################
36# Files
@@ -57,3 +60,5 @@ TARGET_LINK_LIBRARIES(gpsimporterplugin
5760INSTALL (TARGETS gpsimporterplugin
5861 RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
5962 LIBRARY DESTINATION ${QGIS_PLUGIN_DIR} )
63+
64+ ENDIF (EXPAT_FOUND)
You can’t perform that action at this time.
0 commit comments