Skip to content

Commit d50930c

Browse files
cjmayom-kuhn
authored andcommittedMar 4, 2017
Add option to select building Georeferencer plugin
If selected require GSL to be installed
1 parent 191c11a commit d50930c

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed
 

‎.travis.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ matrix:
3232
- libpq-dev
3333
- libfcgi-dev
3434
- libfftw3-3
35+
- libgsl0-dev
3536
- pkg-config
3637
- poppler-utils
3738
- txt2tags

‎CMakeLists.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ ELSE (ANDROID)
116116
ENDIF (ANDROID)
117117
SET (WITH_QTMOBILITY ${DEFAULT_WITH_QTMOBILITY} CACHE BOOL "Determines if QtMobility related code should be build (for example internal GPS)")
118118

119+
SET (WITH_GEOREFERENCER TRUE CACHE BOOL "Determines whether GeoReferencer plugin should be built")
120+
119121
SET (WITH_GLOBE FALSE CACHE BOOL "Determines whether Globe plugin should be built")
120122
IF (WITH_GLOBE)
121123
SET(QT_USE_QTOPENGL 1)

‎cmake/FindGSL.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ELSE(WIN32)
118118
)
119119

120120
ELSE(GSL_CONFIG)
121-
MESSAGE("FindGSL.cmake: gsl-config not found. Please set it manually. GSL_CONFIG=${GSL_CONFIG}")
121+
MESSAGE(FATAL_ERROR "FindGSL.cmake: gsl-config not found. Please install the libgsl development libraries or set the path with -DGSL_CONFIG=/path/to/gsl-config.")
122122
ENDIF(GSL_CONFIG)
123123
ENDIF (NOT GSL_INCLUDE_DIR OR NOT GSL_LIBRARIES OR NOT GSL_CONFIG)
124124
ENDIF(UNIX)

‎src/plugins/CMakeLists.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_PLUGIN_SUBDI
99
ADD_SUBDIRECTORY(coordinate_capture)
1010
ADD_SUBDIRECTORY(evis)
1111
ADD_SUBDIRECTORY(spatialquery)
12-
ADD_SUBDIRECTORY(georeferencer)
1312
ADD_SUBDIRECTORY(gps_importer)
1413
ADD_SUBDIRECTORY(topology)
1514
ADD_SUBDIRECTORY(offline_editing)
@@ -19,6 +18,10 @@ IF (GRASS_FOUND)
1918
ADD_SUBDIRECTORY(grass)
2019
ENDIF (GRASS_FOUND)
2120

21+
IF (WITH_GEOREFERENCER)
22+
ADD_SUBDIRECTORY(georeferencer)
23+
ENDIF (WITH_GEOREFERENCER)
24+
2225
IF (WITH_GLOBE)
2326
ADD_SUBDIRECTORY(globe)
2427
ENDIF (WITH_GLOBE)

‎src/plugins/georeferencer/CMakeLists.txt‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
FIND_PACKAGE(GSL) # Georeferencer
2-
3-
IF(GSL_FOUND)
1+
FIND_PACKAGE(GSL REQUIRED) # Georeferencer
42

53
########################################################
64
# Files
@@ -106,5 +104,3 @@ TARGET_LINK_LIBRARIES(georefplugin
106104
INSTALL(TARGETS georefplugin
107105
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
108106
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})
109-
110-
ENDIF(GSL_FOUND)

0 commit comments

Comments
 (0)
Please sign in to comment.