File tree 3 files changed +538
-0
lines changed
3 files changed +538
-0
lines changed Original file line number Diff line number Diff line change @@ -74,3 +74,43 @@ ENDMACRO (ADD_QGIS_TEST)
74
74
# Tests:
75
75
76
76
ADD_QGIS_TEST(wcsprovidertest testqgswcsprovider.cpp)
77
+
78
+ #############################################################
79
+ # WCS public servers test:
80
+ # No need to test on all platforms
81
+ IF(UNIX AND NOT ANDROID AND CMAKE_BUILD_TYPE MATCHES Debug)
82
+ SET ( WCSTEST_SRCS
83
+ ../../../src/providers/wcs/qgswcscapabilities.cpp
84
+ testqgswcspublicservers.cpp
85
+ )
86
+ SET ( WCSTEST_MOC_HDRS
87
+ ../../../src/providers/wcs/qgswcscapabilities.h
88
+ testqgswcspublicservers.h
89
+ )
90
+
91
+ QT4_WRAP_CPP ( WCSTEST_MOC_SRCS ${WCSTEST_MOC_HDRS} )
92
+
93
+ ADD_EXECUTABLE ( qgis_wcstest ${WCSTEST_SRCS} ${WCSTEST_MOC_SRCS} )
94
+
95
+ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}
96
+ ${CMAKE_CURRENT_SOURCE_DIR} /../../../src/core
97
+ ${CMAKE_CURRENT_SOURCE_DIR} /../../../src/core/raster
98
+ ${CMAKE_CURRENT_SOURCE_DIR} /../../../src/providers/wcs
99
+ )
100
+
101
+ TARGET_LINK_LIBRARIES(qgis_wcstest
102
+ ${QT_QTCORE_LIBRARY}
103
+ ${QT_QTNETWORK_LIBRARY}
104
+ ${QT_QTSVG_LIBRARY}
105
+ ${QT_QTXML_LIBRARY}
106
+ ${QT_QTWEBKIT_LIBRARY}
107
+ ${QT_QTMAIN_LIBRARY}
108
+ qgis_core
109
+ )
110
+
111
+ INSTALL (TARGETS qgis_wcstest
112
+ BUNDLE DESTINATION ${QGIS_BIN_DIR}
113
+ RUNTIME DESTINATION ${QGIS_BIN_DIR}
114
+ )
115
+
116
+ ENDIF(UNIX AND NOT ANDROID AND CMAKE_BUILD_TYPE MATCHES Debug)
You can’t perform that action at this time.
0 commit comments