mirror of
https://github.com/qgis/QGIS.git
synced 2025-07-03 00:03:10 -04:00
Compare commits
3 Commits
e371c10b5c
...
533d4ffa27
Author | SHA1 | Date | |
---|---|---|---|
|
533d4ffa27 | ||
|
c7e1ad9894 | ||
|
3b2d1be5d6 |
@ -73,6 +73,9 @@ set(QGIS_APP_NAME "qgis" CACHE STRING "The main app name and bundle name")
|
|||||||
math(EXPR QGIS_VERSION_INT "${CPACK_PACKAGE_VERSION_MAJOR}*10000+${CPACK_PACKAGE_VERSION_MINOR}*100+${CPACK_PACKAGE_VERSION_PATCH}")
|
math(EXPR QGIS_VERSION_INT "${CPACK_PACKAGE_VERSION_MAJOR}*10000+${CPACK_PACKAGE_VERSION_MINOR}*100+${CPACK_PACKAGE_VERSION_PATCH}")
|
||||||
message(STATUS "QGIS version: ${COMPLETE_VERSION} ${RELEASE_NAME} (${QGIS_VERSION_INT})")
|
message(STATUS "QGIS version: ${COMPLETE_VERSION} ${RELEASE_NAME} (${QGIS_VERSION_INT})")
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
set (ENABLE_LOCAL_BUILD_SHORTCUTS FALSE CACHE BOOL "Disables some build steps which are only relevant for releases to speed up compilation time for development")
|
set (ENABLE_LOCAL_BUILD_SHORTCUTS FALSE CACHE BOOL "Disables some build steps which are only relevant for releases to speed up compilation time for development")
|
||||||
|
|
||||||
#############################################################
|
#############################################################
|
||||||
@ -531,8 +534,6 @@ if(WITH_CORE)
|
|||||||
set(QT_MIN_VERSION 6.4.0)
|
set(QT_MIN_VERSION 6.4.0)
|
||||||
set(QT_VERSION_BASE "Qt6")
|
set(QT_VERSION_BASE "Qt6")
|
||||||
set(QT_VERSION_BASE_LOWER "qt6")
|
set(QT_VERSION_BASE_LOWER "qt6")
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
else()
|
else()
|
||||||
set(QT_VERSION_MAJOR 5)
|
set(QT_VERSION_MAJOR 5)
|
||||||
set(QT_MIN_VERSION 5.15.2)
|
set(QT_MIN_VERSION 5.15.2)
|
||||||
|
@ -281,8 +281,8 @@ endif()
|
|||||||
|
|
||||||
set_target_properties(qgis_3d PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(qgis_3d PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_3d PRIVATE cxx_std_17)
|
target_compile_features(qgis_3d PRIVATE cxx_std_20)
|
||||||
|
|
||||||
if (BUILD_WITH_QT6)
|
if (BUILD_WITH_QT6)
|
||||||
target_include_directories(qgis_3d SYSTEM PUBLIC
|
target_include_directories(qgis_3d SYSTEM PUBLIC
|
||||||
|
@ -566,8 +566,8 @@ endif()
|
|||||||
|
|
||||||
set_target_properties(qgis_analysis PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(qgis_analysis PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_analysis PRIVATE cxx_std_17)
|
target_compile_features(qgis_analysis PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(qgis_analysis PUBLIC
|
target_include_directories(qgis_analysis PUBLIC
|
||||||
${CMAKE_SOURCE_DIR}/src/analysis
|
${CMAKE_SOURCE_DIR}/src/analysis
|
||||||
|
@ -512,9 +512,6 @@ endif()
|
|||||||
#############
|
#############
|
||||||
if (ANDROID)
|
if (ANDROID)
|
||||||
add_library(qgis ${LIBRARY_TYPE} ${QGIS_APPMAIN_SRCS})
|
add_library(qgis ${LIBRARY_TYPE} ${QGIS_APPMAIN_SRCS})
|
||||||
|
|
||||||
# require c++17
|
|
||||||
target_compile_features(qgis PRIVATE cxx_std_17)
|
|
||||||
else()
|
else()
|
||||||
add_executable(qgis WIN32 ${QGIS_APPMAIN_SRCS})
|
add_executable(qgis WIN32 ${QGIS_APPMAIN_SRCS})
|
||||||
|
|
||||||
@ -522,19 +519,20 @@ else()
|
|||||||
qt_disable_unicode_defines(qgis)
|
qt_disable_unicode_defines(qgis)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# require c++17
|
|
||||||
target_compile_features(qgis PRIVATE cxx_std_17)
|
|
||||||
target_compile_definitions(qgis PRIVATE "QT_PLUGINS_DIR=\"${QT_PLUGINS_DIR}\"")
|
target_compile_definitions(qgis PRIVATE "QT_PLUGINS_DIR=\"${QT_PLUGINS_DIR}\"")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# require c++20
|
||||||
|
target_compile_features(qgis PRIVATE cxx_std_20)
|
||||||
|
|
||||||
set_target_properties(qgis PROPERTIES OUTPUT_NAME "${QGIS_APP_NAME}")
|
set_target_properties(qgis PROPERTIES OUTPUT_NAME "${QGIS_APP_NAME}")
|
||||||
|
|
||||||
# Putting IMAGE_RCC_SRCS into qgis_app lib is causing problems when the lib is
|
# Putting IMAGE_RCC_SRCS into qgis_app lib is causing problems when the lib is
|
||||||
# loaded (by plugin for example) in test unit (qgis_layoutpicturetest).
|
# loaded (by plugin for example) in test unit (qgis_layoutpicturetest).
|
||||||
add_library(qgis_app ${LIBRARY_TYPE} ${QGIS_APP_SRCS})
|
add_library(qgis_app ${LIBRARY_TYPE} ${QGIS_APP_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_app PRIVATE cxx_std_17)
|
target_compile_features(qgis_app PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(qgis_app PRIVATE "QT_PLUGINS_DIR=\"${QT_PLUGINS_DIR}\"")
|
target_compile_definitions(qgis_app PRIVATE "QT_PLUGINS_DIR=\"${QT_PLUGINS_DIR}\"")
|
||||||
if (POSTGRES_FOUND)
|
if (POSTGRES_FOUND)
|
||||||
|
@ -25,8 +25,8 @@ add_library(authmethod_apiheader_a STATIC ${AUTH_APIHEADER_SRCS} ${AUTH_APIHEADE
|
|||||||
|
|
||||||
target_include_directories(authmethod_apiheader_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/apiheader/core)
|
target_include_directories(authmethod_apiheader_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/apiheader/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_apiheader_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_apiheader_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_apiheader_a qgis_core)
|
target_link_libraries(authmethod_apiheader_a qgis_core)
|
||||||
|
|
||||||
@ -47,8 +47,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_apiheader MODULE ${AUTH_APIHEADER_SRCS} ${AUTH_APIHEADER_HDRS} ${AUTH_APIHEADER_UIS_H})
|
add_library(authmethod_apiheader MODULE ${AUTH_APIHEADER_SRCS} ${AUTH_APIHEADER_HDRS} ${AUTH_APIHEADER_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_apiheader PRIVATE cxx_std_17)
|
target_compile_features(authmethod_apiheader PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_apiheader qgis_core)
|
target_link_libraries(authmethod_apiheader qgis_core)
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ add_library(authmethod_awss3_a STATIC ${AUTH_AWSS3_SRCS} ${AUTH_AWSS3_HDRS} ${AU
|
|||||||
|
|
||||||
target_include_directories(authmethod_awss3_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/awss3/core)
|
target_include_directories(authmethod_awss3_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/awss3/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_awss3_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_awss3_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_awss3_a qgis_core)
|
target_link_libraries(authmethod_awss3_a qgis_core)
|
||||||
|
|
||||||
@ -50,8 +50,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_awss3 MODULE ${AUTH_AWSS3_SRCS} ${AUTH_AWSS3_HDRS} ${AUTH_AWSS3_UIS_H})
|
add_library(authmethod_awss3 MODULE ${AUTH_AWSS3_SRCS} ${AUTH_AWSS3_HDRS} ${AUTH_AWSS3_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_awss3 PRIVATE cxx_std_17)
|
target_compile_features(authmethod_awss3 PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_awss3 qgis_core)
|
target_link_libraries(authmethod_awss3 qgis_core)
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ add_library(authmethod_basic_a STATIC ${AUTH_BASIC_SRCS} ${AUTH_BASIC_HDRS} ${AU
|
|||||||
|
|
||||||
target_include_directories(authmethod_basic_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/basic/core)
|
target_include_directories(authmethod_basic_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/basic/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_basic_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_basic_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_basic_a qgis_core)
|
target_link_libraries(authmethod_basic_a qgis_core)
|
||||||
|
|
||||||
@ -50,8 +50,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_basic MODULE ${AUTH_BASIC_SRCS} ${AUTH_BASIC_HDRS} ${AUTH_BASIC_UIS_H})
|
add_library(authmethod_basic MODULE ${AUTH_BASIC_SRCS} ${AUTH_BASIC_HDRS} ${AUTH_BASIC_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_basic PRIVATE cxx_std_17)
|
target_compile_features(authmethod_basic PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_basic qgis_core)
|
target_link_libraries(authmethod_basic qgis_core)
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ add_library(authmethod_esritoken_a STATIC ${AUTH_ESRITOKEN_SRCS} ${AUTH_ESRITOKE
|
|||||||
|
|
||||||
target_include_directories(authmethod_esritoken_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/esritoken/core)
|
target_include_directories(authmethod_esritoken_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/esritoken/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_esritoken_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_esritoken_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_esritoken_a qgis_core)
|
target_link_libraries(authmethod_esritoken_a qgis_core)
|
||||||
|
|
||||||
@ -47,8 +47,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_esritoken MODULE ${AUTH_ESRITOKEN_SRCS} ${AUTH_ESRITOKEN_HDRS} ${AUTH_ESRITOKEN_UIS_H})
|
add_library(authmethod_esritoken MODULE ${AUTH_ESRITOKEN_SRCS} ${AUTH_ESRITOKEN_HDRS} ${AUTH_ESRITOKEN_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_esritoken PRIVATE cxx_std_17)
|
target_compile_features(authmethod_esritoken PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_esritoken qgis_core)
|
target_link_libraries(authmethod_esritoken qgis_core)
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ add_library(authmethod_identcert_a STATIC ${AUTH_IDENTCERT_SRCS} ${AUTH_IDENTCER
|
|||||||
|
|
||||||
target_include_directories(authmethod_identcert_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/identcert/core)
|
target_include_directories(authmethod_identcert_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/identcert/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_identcert_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_identcert_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_identcert_a qgis_core)
|
target_link_libraries(authmethod_identcert_a qgis_core)
|
||||||
|
|
||||||
@ -49,8 +49,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_identcert MODULE ${AUTH_IDENTCERT_SRCS} ${AUTH_IDENTCERT_HDRS} ${AUTH_IDENTCERT_UIS_H})
|
add_library(authmethod_identcert MODULE ${AUTH_IDENTCERT_SRCS} ${AUTH_IDENTCERT_HDRS} ${AUTH_IDENTCERT_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_identcert PRIVATE cxx_std_17)
|
target_compile_features(authmethod_identcert PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_identcert qgis_core)
|
target_link_libraries(authmethod_identcert qgis_core)
|
||||||
|
|
||||||
|
@ -25,8 +25,8 @@ add_library(authmethod_maptilerhmacsha256_a STATIC ${AUTH_MAPTILER_HMACSHA256_SR
|
|||||||
|
|
||||||
target_include_directories(authmethod_maptilerhmacsha256_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/hmacsha256/core)
|
target_include_directories(authmethod_maptilerhmacsha256_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/hmacsha256/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_maptilerhmacsha256_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_maptilerhmacsha256_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_maptilerhmacsha256_a qgis_core)
|
target_link_libraries(authmethod_maptilerhmacsha256_a qgis_core)
|
||||||
|
|
||||||
@ -47,8 +47,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_maptilerhmacsha256 MODULE ${AUTH_MAPTILER_HMACSHA256_SRCS} ${AUTH_MAPTILER_HMACSHA256_HDRS} ${AUTH_MAPTILER_HMACSHA256_UIS_H})
|
add_library(authmethod_maptilerhmacsha256 MODULE ${AUTH_MAPTILER_HMACSHA256_SRCS} ${AUTH_MAPTILER_HMACSHA256_HDRS} ${AUTH_MAPTILER_HMACSHA256_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_maptilerhmacsha256 PRIVATE cxx_std_17)
|
target_compile_features(authmethod_maptilerhmacsha256 PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_maptilerhmacsha256 qgis_core)
|
target_link_libraries(authmethod_maptilerhmacsha256 qgis_core)
|
||||||
|
|
||||||
|
@ -105,8 +105,8 @@ add_library(authmethod_oauth2_a STATIC ${AUTH_OAUTH2_SRCS} ${AUTH_OAUTH2_HDRS} $
|
|||||||
|
|
||||||
target_include_directories(authmethod_oauth2_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/oauth2/core)
|
target_include_directories(authmethod_oauth2_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/oauth2/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_oauth2_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_oauth2_a PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(authmethod_oauth2_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(authmethod_oauth2_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_link_libraries(authmethod_oauth2_a qgis_core)
|
target_link_libraries(authmethod_oauth2_a qgis_core)
|
||||||
@ -141,8 +141,8 @@ else()
|
|||||||
${CMAKE_SOURCE_DIR}/src/auth/oauth2/core
|
${CMAKE_SOURCE_DIR}/src/auth/oauth2/core
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_oauth2 PRIVATE cxx_std_17)
|
target_compile_features(authmethod_oauth2 PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(authmethod_oauth2 PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(authmethod_oauth2 PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_link_libraries(authmethod_oauth2 qgis_core)
|
target_link_libraries(authmethod_oauth2 qgis_core)
|
||||||
|
@ -24,8 +24,8 @@ add_library(authmethod_pkipaths_a STATIC ${AUTH_PKIPATHS_SRCS} ${AUTH_PKIPATHS_H
|
|||||||
|
|
||||||
target_include_directories(authmethod_pkipaths_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/pkipaths/core)
|
target_include_directories(authmethod_pkipaths_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/pkipaths/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_pkipaths_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_pkipaths_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_pkipaths_a qgis_core)
|
target_link_libraries(authmethod_pkipaths_a qgis_core)
|
||||||
|
|
||||||
@ -48,8 +48,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_pkipaths MODULE ${AUTH_PKIPATHS_SRCS} ${AUTH_PKIPATHS_HDRS} ${AUTH_PKIPATHS_UIS_H})
|
add_library(authmethod_pkipaths MODULE ${AUTH_PKIPATHS_SRCS} ${AUTH_PKIPATHS_HDRS} ${AUTH_PKIPATHS_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_pkipaths PRIVATE cxx_std_17)
|
target_compile_features(authmethod_pkipaths PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_pkipaths qgis_core)
|
target_link_libraries(authmethod_pkipaths qgis_core)
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@ add_library(authmethod_pkcs12_a STATIC ${AUTH_PKCS12_SRCS} ${AUTH_PKCS12_HDRS} $
|
|||||||
|
|
||||||
target_include_directories(authmethod_pkcs12_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/pkipkcs12/core)
|
target_include_directories(authmethod_pkcs12_a PUBLIC ${CMAKE_SOURCE_DIR}/src/auth/pkipkcs12/core)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_pkcs12_a PRIVATE cxx_std_17)
|
target_compile_features(authmethod_pkcs12_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_pkcs12_a qgis_core)
|
target_link_libraries(authmethod_pkcs12_a qgis_core)
|
||||||
|
|
||||||
@ -48,8 +48,8 @@ else()
|
|||||||
# dynamically loaded module
|
# dynamically loaded module
|
||||||
add_library(authmethod_pkcs12 MODULE ${AUTH_PKCS12_SRCS} ${AUTH_PKCS12_HDRS} ${AUTH_PKCS12_UIS_H})
|
add_library(authmethod_pkcs12 MODULE ${AUTH_PKCS12_SRCS} ${AUTH_PKCS12_HDRS} ${AUTH_PKCS12_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(authmethod_pkcs12 PRIVATE cxx_std_17)
|
target_compile_features(authmethod_pkcs12 PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(authmethod_pkcs12 qgis_core)
|
target_link_libraries(authmethod_pkcs12 qgis_core)
|
||||||
|
|
||||||
|
@ -14,8 +14,6 @@ ADD_FLEX_BISON_DEPENDENCY(QgsMeshCalcLexer QgsMeshCalcParser)
|
|||||||
if (WITH_PDF4QT)
|
if (WITH_PDF4QT)
|
||||||
SET(PDF4QT_BUILD_ONLY_CORE_LIBRARY TRUE)
|
SET(PDF4QT_BUILD_ONLY_CORE_LIBRARY TRUE)
|
||||||
SET(PDF4QT_ENABLE_OPENGL FALSE)
|
SET(PDF4QT_ENABLE_OPENGL FALSE)
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
||||||
SUBDIRS(${CMAKE_SOURCE_DIR}/external/PDF4QT)
|
SUBDIRS(${CMAKE_SOURCE_DIR}/external/PDF4QT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -2361,8 +2359,8 @@ else()
|
|||||||
target_link_libraries(qgis_core meshoptimizer::meshoptimizer)
|
target_link_libraries(qgis_core meshoptimizer::meshoptimizer)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_core PRIVATE cxx_std_17)
|
target_compile_features(qgis_core PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# Exiv still uses std::auto_ptr
|
# Exiv still uses std::auto_ptr
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
|
@ -23,7 +23,7 @@ add_executable(qgiscrashhandler WIN32
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/../app/qgis_win32.rc
|
${CMAKE_CURRENT_SOURCE_DIR}/../app/qgis_win32.rc
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features(qgiscrashhandler PRIVATE cxx_std_17)
|
target_compile_features(qgiscrashhandler PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(qgiscrashhandler
|
target_link_libraries(qgiscrashhandler
|
||||||
${QT_VERSION_BASE}::Core
|
${QT_VERSION_BASE}::Core
|
||||||
|
@ -6,7 +6,7 @@ if (NATIVE_CRSSYNC_BIN)
|
|||||||
|
|
||||||
else ()
|
else ()
|
||||||
add_executable(crssync main.cpp)
|
add_executable(crssync main.cpp)
|
||||||
target_compile_features(crssync PRIVATE cxx_std_17)
|
target_compile_features(crssync PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(crssync
|
target_link_libraries(crssync
|
||||||
qgis_core
|
qgis_core
|
||||||
|
@ -1697,7 +1697,7 @@ add_library(qgis_gui ${LIBRARY_TYPE}
|
|||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++17
|
||||||
target_compile_features(qgis_gui PRIVATE cxx_std_17)
|
target_compile_features(qgis_gui PRIVATE cxx_std_20)
|
||||||
|
|
||||||
if (USE_PRECOMPILED_HEADERS)
|
if (USE_PRECOMPILED_HEADERS)
|
||||||
target_precompile_headers(qgis_gui PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${CMAKE_SOURCE_DIR}/src/core/qgis.h>)
|
target_precompile_headers(qgis_gui PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${CMAKE_SOURCE_DIR}/src/core/qgis.h>)
|
||||||
|
@ -65,7 +65,7 @@ add_library(qgis_native ${LIBRARY_TYPE} ${QGIS_NATIVE_SRCS} ${QGIS_NATIVE_HDRS})
|
|||||||
set_property(TARGET qgis_native PROPERTY POSITION_INDEPENDENT_CODE ON)
|
set_property(TARGET qgis_native PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
||||||
# require c++17
|
# require c++17
|
||||||
target_compile_features(qgis_native PRIVATE cxx_std_17)
|
target_compile_features(qgis_native PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(qgis_native PUBLIC
|
target_include_directories(qgis_native PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
@ -35,7 +35,7 @@ qt_wrap_ui(geometrychecker_UIS_H ${geometrychecker_UIS})
|
|||||||
add_library (plugin_geometrychecker MODULE ${geometrychecker_SRCS} ${geometrychecker_RCCS} ${geometrychecker_UIS_H})
|
add_library (plugin_geometrychecker MODULE ${geometrychecker_SRCS} ${geometrychecker_RCCS} ${geometrychecker_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++17
|
||||||
target_compile_features(plugin_geometrychecker PRIVATE cxx_std_17)
|
target_compile_features(plugin_geometrychecker PRIVATE cxx_std_20)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}/src/plugins
|
${CMAKE_SOURCE_DIR}/src/plugins
|
||||||
|
@ -108,7 +108,7 @@ macro(ADD_GRASSPLUGIN GRASS_BUILD_VERSION)
|
|||||||
set_source_files_properties(${GRASS_PLUGIN_SRCS} PROPERTIES COMPILE_FLAGS "-wd4611")
|
set_source_files_properties(${GRASS_PLUGIN_SRCS} PROPERTIES COMPILE_FLAGS "-wd4611")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_compile_features(plugin_grass${GRASS_BUILD_VERSION} PRIVATE cxx_std_17)
|
target_compile_features(plugin_grass${GRASS_BUILD_VERSION} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(plugin_grass${GRASS_BUILD_VERSION}
|
target_link_libraries(plugin_grass${GRASS_BUILD_VERSION}
|
||||||
qgisgrass${GRASS_BUILD_VERSION}
|
qgisgrass${GRASS_BUILD_VERSION}
|
||||||
|
@ -26,8 +26,8 @@ add_library (plugin_offlineediting MODULE
|
|||||||
${offline_editing_plugin_UIS_H}
|
${offline_editing_plugin_UIS_H}
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(plugin_offlineediting PRIVATE cxx_std_17)
|
target_compile_features(plugin_offlineediting PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(plugin_offlineediting
|
target_link_libraries(plugin_offlineediting
|
||||||
qgis_core
|
qgis_core
|
||||||
|
@ -25,8 +25,8 @@ qt_wrap_ui(topol_UIS_H ${topol_UIS})
|
|||||||
|
|
||||||
add_library (plugin_topology MODULE ${topol_SRCS} ${topol_RCCS} ${topol_UIS_H})
|
add_library (plugin_topology MODULE ${topol_SRCS} ${topol_RCCS} ${topol_UIS_H})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(plugin_topology PRIVATE cxx_std_17)
|
target_compile_features(plugin_topology PRIVATE cxx_std_20)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}/src/plugins
|
${CMAKE_SOURCE_DIR}/src/plugins
|
||||||
|
@ -17,8 +17,8 @@ endif()
|
|||||||
|
|
||||||
add_executable (qgis_process ${QGIS_PROCESS_SRCS})
|
add_executable (qgis_process ${QGIS_PROCESS_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_process PRIVATE cxx_std_17)
|
target_compile_features(qgis_process PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(qgis_process PUBLIC
|
target_include_directories(qgis_process PUBLIC
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
@ -30,8 +30,8 @@ target_include_directories(provider_arcgisfeatureserver_a PUBLIC
|
|||||||
${CMAKE_SOURCE_DIR}/src/providers/arcgisrest
|
${CMAKE_SOURCE_DIR}/src/providers/arcgisrest
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_arcgisfeatureserver_a PRIVATE cxx_std_17)
|
target_compile_features(provider_arcgisfeatureserver_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_arcgisfeatureserver_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_arcgisfeatureserver_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
@ -48,8 +48,8 @@ if (WITH_GUI)
|
|||||||
|
|
||||||
set_target_properties(provider_arcgisfeatureserver_gui_a PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(provider_arcgisfeatureserver_gui_a PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_arcgisfeatureserver_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_arcgisfeatureserver_gui_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(provider_arcgisfeatureserver_a
|
target_link_libraries(provider_arcgisfeatureserver_a
|
||||||
qgis_gui
|
qgis_gui
|
||||||
@ -82,8 +82,8 @@ else()
|
|||||||
${QCA_LIBRARY}
|
${QCA_LIBRARY}
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_arcgisfeatureserver PRIVATE cxx_std_17)
|
target_compile_features(provider_arcgisfeatureserver PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_arcgisfeatureserver PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_arcgisfeatureserver PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
@ -113,8 +113,8 @@ target_include_directories(provider_arcgismapserver_a PUBLIC
|
|||||||
${CMAKE_SOURCE_DIR}/src/providers/arcgisrest
|
${CMAKE_SOURCE_DIR}/src/providers/arcgisrest
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_arcgismapserver_a PRIVATE cxx_std_17)
|
target_compile_features(provider_arcgismapserver_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_arcgismapserver_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_arcgismapserver_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
@ -130,8 +130,8 @@ if (FORCE_STATIC_LIBS)
|
|||||||
else()
|
else()
|
||||||
add_library(provider_arcgismapserver MODULE ${AMS_SRCS})
|
add_library(provider_arcgismapserver MODULE ${AMS_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_arcgismapserver PRIVATE cxx_std_17)
|
target_compile_features(provider_arcgismapserver PRIVATE cxx_std_20)
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_arcgismapserver PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_arcgismapserver PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@ target_link_libraries(provider_delimitedtext_a
|
|||||||
qgis_core
|
qgis_core
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_delimitedtext_a PRIVATE cxx_std_17)
|
target_compile_features(provider_delimitedtext_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_delimitedtext_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_delimitedtext_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
|
||||||
@ -42,8 +42,8 @@ if (WITH_GUI)
|
|||||||
qgis_gui
|
qgis_gui
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_delimitedtext_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_delimitedtext_gui_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_delimitedtext_gui_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_delimitedtext_gui_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
|
||||||
@ -59,8 +59,8 @@ if (FORCE_STATIC_LIBS)
|
|||||||
else()
|
else()
|
||||||
add_library(provider_delimitedtext MODULE ${DTEXT_SRCS} ${DTEXT_GUI_SRCS})
|
add_library(provider_delimitedtext MODULE ${DTEXT_SRCS} ${DTEXT_GUI_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_delimitedtext PRIVATE cxx_std_17)
|
target_compile_features(provider_delimitedtext PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(provider_delimitedtext
|
target_link_libraries(provider_delimitedtext
|
||||||
qgis_core
|
qgis_core
|
||||||
|
@ -30,8 +30,8 @@ include_directories (SYSTEM
|
|||||||
|
|
||||||
add_library(provider_gpx MODULE ${GPX_SRCS})
|
add_library(provider_gpx MODULE ${GPX_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_gpx PRIVATE cxx_std_17)
|
target_compile_features(provider_gpx PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(provider_gpx
|
target_link_libraries(provider_gpx
|
||||||
qgis_core
|
qgis_core
|
||||||
|
@ -63,8 +63,8 @@ macro(ADD_GRASSLIB GRASS_BUILD_VERSION)
|
|||||||
${GRASS_LIBRARY_UIS_H}
|
${GRASS_LIBRARY_UIS_H}
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgisgrass${GRASS_BUILD_VERSION} PRIVATE cxx_std_17)
|
target_compile_features(qgisgrass${GRASS_BUILD_VERSION} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
if(GRASS_OFF_T_SIZE)
|
if(GRASS_OFF_T_SIZE)
|
||||||
set(GRASS_OFF_T_SIZE_DEF "\"-DGRASS_OFF_T_SIZE=${GRASS_OFF_T_SIZE}\"")
|
set(GRASS_OFF_T_SIZE_DEF "\"-DGRASS_OFF_T_SIZE=${GRASS_OFF_T_SIZE}\"")
|
||||||
@ -132,8 +132,8 @@ macro(ADD_GRASSLIB GRASS_BUILD_VERSION)
|
|||||||
set (GRASS_VECTOR_PROVIDER_SRCS ../qgsgrassprovidermodule.cpp)
|
set (GRASS_VECTOR_PROVIDER_SRCS ../qgsgrassprovidermodule.cpp)
|
||||||
add_library(provider_grass${GRASS_BUILD_VERSION} MODULE ${GRASS_VECTOR_PROVIDER_SRCS})
|
add_library(provider_grass${GRASS_BUILD_VERSION} MODULE ${GRASS_VECTOR_PROVIDER_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_grass${GRASS_BUILD_VERSION} PRIVATE cxx_std_17)
|
target_compile_features(provider_grass${GRASS_BUILD_VERSION} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
set_target_properties(provider_grass${GRASS_BUILD_VERSION} PROPERTIES
|
set_target_properties(provider_grass${GRASS_BUILD_VERSION} PROPERTIES
|
||||||
COMPILE_FLAGS "-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\""
|
COMPILE_FLAGS "-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\""
|
||||||
@ -157,8 +157,8 @@ macro(ADD_GRASSLIB GRASS_BUILD_VERSION)
|
|||||||
)
|
)
|
||||||
add_library(provider_grassraster${GRASS_BUILD_VERSION} MODULE ${GRASS_RASTER_PROVIDER_SRCS})
|
add_library(provider_grassraster${GRASS_BUILD_VERSION} MODULE ${GRASS_RASTER_PROVIDER_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_grassraster${GRASS_BUILD_VERSION} PRIVATE cxx_std_17)
|
target_compile_features(provider_grassraster${GRASS_BUILD_VERSION} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
set_target_properties(provider_grassraster${GRASS_BUILD_VERSION} PROPERTIES
|
set_target_properties(provider_grassraster${GRASS_BUILD_VERSION} PROPERTIES
|
||||||
COMPILE_FLAGS "-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\""
|
COMPILE_FLAGS "-DGRASS_BASE=\\\"${GRASS_PREFIX}\\\""
|
||||||
@ -749,8 +749,8 @@ if(WITH_GRASS_DIRECT)
|
|||||||
endif()
|
endif()
|
||||||
add_library(${FAKE_LIB_GRASS_GIS} MODULE qgsgrassgislib.cpp qgsgrassgislibfunctions.cpp )
|
add_library(${FAKE_LIB_GRASS_GIS} MODULE qgsgrassgislib.cpp qgsgrassgislibfunctions.cpp )
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(${FAKE_LIB_GRASS_GIS} PRIVATE cxx_std_17)
|
target_compile_features(${FAKE_LIB_GRASS_GIS} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# GRASS_LIBRARY_gis is path to the GRASS library used for compilation, it is the same
|
# GRASS_LIBRARY_gis is path to the GRASS library used for compilation, it is the same
|
||||||
# on runtime on Linux and Mac but on Windows with OSGEO4W the GRASS may be installed
|
# on runtime on Linux and Mac but on Windows with OSGEO4W the GRASS may be installed
|
||||||
|
@ -80,9 +80,9 @@ add_library(provider_hana_a STATIC ${HANA_SRCS} ${HANA_HDRS})
|
|||||||
set_target_properties(provider_hana PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(provider_hana PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
set_target_properties(provider_hana_a PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(provider_hana_a PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_hana PRIVATE cxx_std_17)
|
target_compile_features(provider_hana PRIVATE cxx_std_20)
|
||||||
target_compile_features(provider_hana_a PRIVATE cxx_std_17)
|
target_compile_features(provider_hana_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_hana
|
target_compile_definitions(provider_hana
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
@ -184,8 +184,8 @@ include_directories (
|
|||||||
|
|
||||||
add_library (provider_mdal MODULE ${MDAL_SRCS} ${MDAL_LIB_SRCS} ${MDAL_LIB_HDRS})
|
add_library (provider_mdal MODULE ${MDAL_SRCS} ${MDAL_LIB_SRCS} ${MDAL_LIB_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_mdal PRIVATE cxx_std_17)
|
target_compile_features(provider_mdal PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries (provider_mdal
|
target_link_libraries (provider_mdal
|
||||||
qgis_core
|
qgis_core
|
||||||
|
@ -38,8 +38,8 @@ include_directories(
|
|||||||
|
|
||||||
add_library(provider_mssql MODULE ${MSSQL_SRCS} ${MSSQL_HDRS})
|
add_library(provider_mssql MODULE ${MSSQL_SRCS} ${MSSQL_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_mssql PRIVATE cxx_std_17)
|
target_compile_features(provider_mssql PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_mssql PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_mssql PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
@ -61,8 +61,8 @@ endif()
|
|||||||
# static library
|
# static library
|
||||||
add_library (provider_mssql_a STATIC ${MSSQL_SRCS} ${MSSQL_HDRS})
|
add_library (provider_mssql_a STATIC ${MSSQL_SRCS} ${MSSQL_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_mssql_a PRIVATE cxx_std_17)
|
target_compile_features(provider_mssql_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_mssql_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_mssql_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
@ -50,8 +50,8 @@ endif()
|
|||||||
|
|
||||||
add_library (provider_oracle MODULE ${ORACLE_SRCS} ${ORACLE_HDRS})
|
add_library (provider_oracle MODULE ${ORACLE_SRCS} ${ORACLE_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_oracle PRIVATE cxx_std_17)
|
target_compile_features(provider_oracle PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_oracle PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_oracle PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_link_libraries (provider_oracle
|
target_link_libraries (provider_oracle
|
||||||
|
@ -174,7 +174,7 @@ include_directories(
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_executable(untwine ${UNTWINE_SRCS} ${UNTWINE_HDRS})
|
add_executable(untwine ${UNTWINE_SRCS} ${UNTWINE_HDRS})
|
||||||
target_compile_features(untwine PRIVATE cxx_std_17)
|
target_compile_features(untwine PRIVATE cxx_std_20)
|
||||||
|
|
||||||
set_target_properties(untwine PROPERTIES
|
set_target_properties(untwine PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_LIBEXEC_SUBDIR}
|
RUNTIME_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_LIBEXEC_SUBDIR}
|
||||||
@ -195,7 +195,7 @@ endif()
|
|||||||
|
|
||||||
if (PDAL_2_5_OR_HIGHER)
|
if (PDAL_2_5_OR_HIGHER)
|
||||||
add_executable(pdal_wrench ${PDAL_WRENCH_SRCS})
|
add_executable(pdal_wrench ${PDAL_WRENCH_SRCS})
|
||||||
target_compile_features(pdal_wrench PRIVATE cxx_std_17)
|
target_compile_features(pdal_wrench PRIVATE cxx_std_20)
|
||||||
|
|
||||||
set_target_properties(pdal_wrench PROPERTIES
|
set_target_properties(pdal_wrench PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_LIBEXEC_SUBDIR}
|
RUNTIME_OUTPUT_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/${QGIS_LIBEXEC_SUBDIR}
|
||||||
@ -218,7 +218,7 @@ endif()
|
|||||||
|
|
||||||
add_library (provider_pdal MODULE ${PDAL_SRCS} ${PDAL_HDRS} ${PDAL_GUI_SRCS} ${PDAL_GUI_HDRS})
|
add_library (provider_pdal MODULE ${PDAL_SRCS} ${PDAL_HDRS} ${PDAL_GUI_SRCS} ${PDAL_GUI_HDRS})
|
||||||
|
|
||||||
target_compile_features(provider_pdal PRIVATE cxx_std_17)
|
target_compile_features(provider_pdal PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries (provider_pdal
|
target_link_libraries (provider_pdal
|
||||||
qgis_core
|
qgis_core
|
||||||
@ -243,8 +243,8 @@ endif()
|
|||||||
# static library
|
# static library
|
||||||
add_library (provider_pdal_a STATIC ${PDAL_SRCS} ${PDAL_HDRS})
|
add_library (provider_pdal_a STATIC ${PDAL_SRCS} ${PDAL_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_pdal_a PRIVATE cxx_std_17)
|
target_compile_features(provider_pdal_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries (provider_pdal_a
|
target_link_libraries (provider_pdal_a
|
||||||
${PDAL_LIBRARIES}
|
${PDAL_LIBRARIES}
|
||||||
@ -260,8 +260,8 @@ target_link_libraries (provider_pdal_a
|
|||||||
if (WITH_GUI)
|
if (WITH_GUI)
|
||||||
add_library (provider_pdal_gui_a STATIC ${PDAL_GUI_SRCS} ${PDAL_GUI_HDRS})
|
add_library (provider_pdal_gui_a STATIC ${PDAL_GUI_SRCS} ${PDAL_GUI_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_pdal_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_pdal_gui_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries (provider_pdal_gui_a
|
target_link_libraries (provider_pdal_gui_a
|
||||||
${PDAL_LIBRARIES}
|
${PDAL_LIBRARIES}
|
||||||
|
@ -50,8 +50,8 @@ target_include_directories(provider_postgres_a PUBLIC
|
|||||||
${CMAKE_SOURCE_DIR}/src/providers/postgres
|
${CMAKE_SOURCE_DIR}/src/providers/postgres
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_postgres_a PRIVATE cxx_std_17)
|
target_compile_features(provider_postgres_a PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_postgres_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_postgres_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_link_libraries (provider_postgres_a
|
target_link_libraries (provider_postgres_a
|
||||||
@ -70,8 +70,8 @@ if (WITH_GUI)
|
|||||||
${CMAKE_BINARY_DIR}/src/providers/postgres
|
${CMAKE_BINARY_DIR}/src/providers/postgres
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_postgres_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_postgres_gui_a PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_postgres_gui_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_postgres_gui_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_link_libraries(provider_postgres_gui_a
|
target_link_libraries(provider_postgres_gui_a
|
||||||
@ -101,8 +101,8 @@ target_include_directories(provider_postgresraster_a PUBLIC
|
|||||||
${CMAKE_SOURCE_DIR}/src/providers/postgres/raster
|
${CMAKE_SOURCE_DIR}/src/providers/postgres/raster
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_postgresraster_a PRIVATE cxx_std_17)
|
target_compile_features(provider_postgresraster_a PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_postgresraster_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_postgresraster_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_link_libraries (provider_postgresraster_a
|
target_link_libraries (provider_postgresraster_a
|
||||||
@ -138,9 +138,9 @@ else()
|
|||||||
${CMAKE_SOURCE_DIR}/src/providers/postgres
|
${CMAKE_SOURCE_DIR}/src/providers/postgres
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_postgres PRIVATE cxx_std_17)
|
target_compile_features(provider_postgres PRIVATE cxx_std_20)
|
||||||
target_compile_features(provider_postgresraster PRIVATE cxx_std_17)
|
target_compile_features(provider_postgresraster PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_postgres PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_postgres PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
target_compile_definitions(provider_postgresraster PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_postgresraster PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
|
@ -43,8 +43,8 @@ target_link_libraries(provider_spatialite_a
|
|||||||
spatialite::spatialite
|
spatialite::spatialite
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_spatialite_a PRIVATE cxx_std_17)
|
target_compile_features(provider_spatialite_a PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_spatialite_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_spatialite_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_compile_definitions(provider_spatialite_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_spatialite_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
@ -67,8 +67,8 @@ if (WITH_GUI)
|
|||||||
qgis_gui
|
qgis_gui
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_spatialite_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_spatialite_gui_a PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_spatialite_gui_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_spatialite_gui_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_compile_definitions(provider_spatialite_gui_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_spatialite_gui_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
@ -92,8 +92,8 @@ else()
|
|||||||
|
|
||||||
set_target_properties(provider_spatialite PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(provider_spatialite PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_spatialite PRIVATE cxx_std_17)
|
target_compile_features(provider_spatialite PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(provider_spatialite PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_spatialite PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
target_compile_definitions(provider_spatialite PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_spatialite PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
@ -42,8 +42,8 @@ target_link_libraries(provider_virtuallayer_a
|
|||||||
qgis_core
|
qgis_core
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_virtuallayer_a PRIVATE cxx_std_17)
|
target_compile_features(provider_virtuallayer_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_virtuallayer_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_virtuallayer_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
|
||||||
@ -59,8 +59,8 @@ if (WITH_GUI)
|
|||||||
qgis_gui
|
qgis_gui
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_virtuallayer_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_virtuallayer_gui_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_virtuallayer_gui_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_virtuallayer_gui_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
|
||||||
@ -82,8 +82,8 @@ if (FORCE_STATIC_LIBS)
|
|||||||
else()
|
else()
|
||||||
add_library(provider_virtuallayer MODULE ${VLAYER_PROVIDER_SRCS} ${VLAYER_PROVIDER_HDRS} ${VLAYER_PROVIDER_GUI_SRCS} ${VLAYER_PROVIDER_GUI_HDRS} ${VLAYER_PROVIDER_UIS_H} ${VLAYER_SQL_FUNCTIONS_RCCS})
|
add_library(provider_virtuallayer MODULE ${VLAYER_PROVIDER_SRCS} ${VLAYER_PROVIDER_HDRS} ${VLAYER_PROVIDER_GUI_SRCS} ${VLAYER_PROVIDER_GUI_HDRS} ${VLAYER_PROVIDER_UIS_H} ${VLAYER_SQL_FUNCTIONS_RCCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_virtuallayer PRIVATE cxx_std_17)
|
target_compile_features(provider_virtuallayer PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_virtuallayer PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_virtuallayer PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ set(VRP_HDRS
|
|||||||
|
|
||||||
add_library (provider_virtualraster MODULE ${VRP_SRCS} ${VRP_HDRS})
|
add_library (provider_virtualraster MODULE ${VRP_SRCS} ${VRP_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_virtualraster PRIVATE cxx_std_17)
|
target_compile_features(provider_virtualraster PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries (provider_virtualraster
|
target_link_libraries (provider_virtualraster
|
||||||
qgis_core
|
qgis_core
|
||||||
|
@ -26,8 +26,8 @@ target_link_libraries(provider_wcs_a
|
|||||||
qgis_core
|
qgis_core
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wcs_a PRIVATE cxx_std_17)
|
target_compile_features(provider_wcs_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_wcs_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_wcs_a PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
@ -47,8 +47,8 @@ if (WITH_GUI)
|
|||||||
qgis_gui
|
qgis_gui
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wcs_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_wcs_gui_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_wcs_gui_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_wcs_gui_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
|
||||||
@ -68,8 +68,8 @@ if (FORCE_STATIC_LIBS)
|
|||||||
else()
|
else()
|
||||||
add_library(provider_wcs MODULE ${WCS_SRCS} ${WCS_GUI_SRCS})
|
add_library(provider_wcs MODULE ${WCS_SRCS} ${WCS_GUI_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wcs PRIVATE cxx_std_17)
|
target_compile_features(provider_wcs PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_wcs PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_wcs PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
@ -70,8 +70,8 @@ target_link_libraries(provider_wfs_a
|
|||||||
GDAL::GDAL
|
GDAL::GDAL
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wfs_a PRIVATE cxx_std_17)
|
target_compile_features(provider_wfs_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
@ -97,8 +97,8 @@ if (WITH_GUI)
|
|||||||
qgis_gui
|
qgis_gui
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wfs_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_wfs_gui_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_compile_definitions(provider_wfs_gui_a PRIVATE "-DQT_NO_FOREACH")
|
target_compile_definitions(provider_wfs_gui_a PRIVATE "-DQT_NO_FOREACH")
|
||||||
|
|
||||||
@ -121,8 +121,8 @@ else()
|
|||||||
|
|
||||||
set_target_properties(provider_wfs PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(provider_wfs PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wfs PRIVATE cxx_std_17)
|
target_compile_features(provider_wfs PRIVATE cxx_std_20)
|
||||||
|
|
||||||
# We use private headers from core that need this
|
# We use private headers from core that need this
|
||||||
target_compile_definitions(provider_wfs PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(provider_wfs PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
@ -31,8 +31,8 @@ target_include_directories(provider_wms_a PUBLIC
|
|||||||
${CMAKE_SOURCE_DIR}/src/providers/wms
|
${CMAKE_SOURCE_DIR}/src/providers/wms
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wms_a PRIVATE cxx_std_17)
|
target_compile_features(provider_wms_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
if (WITH_GUI)
|
if (WITH_GUI)
|
||||||
qt_wrap_ui(WMS_UIS_H ${WMS_UIS})
|
qt_wrap_ui(WMS_UIS_H ${WMS_UIS})
|
||||||
@ -45,8 +45,8 @@ if (WITH_GUI)
|
|||||||
${CMAKE_BINARY_DIR}/src/providers/wms
|
${CMAKE_BINARY_DIR}/src/providers/wms
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wms_gui_a PRIVATE cxx_std_17)
|
target_compile_features(provider_wms_gui_a PRIVATE cxx_std_20)
|
||||||
|
|
||||||
add_dependencies(provider_wms_a ui)
|
add_dependencies(provider_wms_a ui)
|
||||||
add_dependencies(provider_wms_gui_a ui)
|
add_dependencies(provider_wms_gui_a ui)
|
||||||
@ -80,8 +80,8 @@ else()
|
|||||||
|
|
||||||
set_target_properties(provider_wms PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(provider_wms PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(provider_wms PRIVATE cxx_std_17)
|
target_compile_features(provider_wms PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(provider_wms
|
target_link_libraries(provider_wms
|
||||||
qgis_core
|
qgis_core
|
||||||
|
@ -2,8 +2,8 @@ set(QGISPYTHON_SRCS qgispython.cpp qgspythonutilsimpl.cpp)
|
|||||||
|
|
||||||
add_library (qgispython SHARED ${QGISPYTHON_SRCS})
|
add_library (qgispython SHARED ${QGISPYTHON_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgispython PRIVATE cxx_std_17)
|
target_compile_features(qgispython PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(qgispython PUBLIC
|
target_include_directories(qgispython PUBLIC
|
||||||
${CMAKE_SOURCE_DIR}/src/python
|
${CMAKE_SOURCE_DIR}/src/python
|
||||||
|
@ -46,8 +46,8 @@ add_library(qgis_quick ${LIBRARY_TYPE}
|
|||||||
${QGIS_QUICK_GUI_MOC_SRCS}
|
${QGIS_QUICK_GUI_MOC_SRCS}
|
||||||
${QGIS_QUICK_GUI_HDRS})
|
${QGIS_QUICK_GUI_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_quick PRIVATE cxx_std_17)
|
target_compile_features(qgis_quick PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(qgis_quick
|
target_link_libraries(qgis_quick
|
||||||
${QT_VERSION_BASE}::Quick
|
${QT_VERSION_BASE}::Quick
|
||||||
|
@ -52,8 +52,8 @@ add_library(qgis_quick_plugin ${LIBRARY_TYPE}
|
|||||||
${QGIS_QUICK_PLUGIN_RESOURCES}
|
${QGIS_QUICK_PLUGIN_RESOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_quick_plugin PRIVATE cxx_std_17)
|
target_compile_features(qgis_quick_plugin PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(qgis_quick_plugin qgis_quick)
|
target_link_libraries(qgis_quick_plugin qgis_quick)
|
||||||
set_target_properties(qgis_quick_plugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${QGIS_QUICK_PLUGIN_RUNTIME_DIR})
|
set_target_properties(qgis_quick_plugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${QGIS_QUICK_PLUGIN_RUNTIME_DIR})
|
||||||
|
@ -92,8 +92,8 @@ endif()
|
|||||||
|
|
||||||
set_target_properties(qgis_server PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
set_target_properties(qgis_server PROPERTIES UNITY_BUILD ${ENABLE_UNITY_BUILDS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_server PRIVATE cxx_std_17)
|
target_compile_features(qgis_server PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(qgis_server SYSTEM PUBLIC
|
target_include_directories(qgis_server SYSTEM PUBLIC
|
||||||
${FCGI_INCLUDE_DIR}
|
${FCGI_INCLUDE_DIR}
|
||||||
@ -154,9 +154,9 @@ set(QGIS_SERVER_TESTRCCS ../../tests/testdata/testdata.qrc)
|
|||||||
add_executable(qgis_mapserv.fcgi qgis_map_serv.cpp ${QGIS_SERVER_TESTRCCS})
|
add_executable(qgis_mapserv.fcgi qgis_map_serv.cpp ${QGIS_SERVER_TESTRCCS})
|
||||||
add_executable(qgis_mapserver qgis_mapserver.cpp ${QGIS_SERVER_TESTRCCS})
|
add_executable(qgis_mapserver qgis_mapserver.cpp ${QGIS_SERVER_TESTRCCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_mapserv.fcgi PRIVATE cxx_std_17)
|
target_compile_features(qgis_mapserv.fcgi PRIVATE cxx_std_20)
|
||||||
target_compile_features(qgis_mapserver PRIVATE cxx_std_17)
|
target_compile_features(qgis_mapserver PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(qgis_mapserv.fcgi qgis_server)
|
target_link_libraries(qgis_mapserv.fcgi qgis_server)
|
||||||
target_link_libraries(qgis_mapserver qgis_server)
|
target_link_libraries(qgis_mapserver qgis_server)
|
||||||
|
@ -13,8 +13,8 @@ set (LANDINGPAGE_SRCS
|
|||||||
|
|
||||||
add_library (landingpage MODULE ${LANDINGPAGE_SRCS})
|
add_library (landingpage MODULE ${LANDINGPAGE_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(landingpage PRIVATE cxx_std_17)
|
target_compile_features(landingpage PRIVATE cxx_std_20)
|
||||||
|
|
||||||
include_directories(SYSTEM
|
include_directories(SYSTEM
|
||||||
)
|
)
|
||||||
|
@ -15,8 +15,8 @@ set (wcs_SRCS
|
|||||||
|
|
||||||
add_library (wcs MODULE ${wcs_SRCS})
|
add_library (wcs MODULE ${wcs_SRCS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(wcs PRIVATE cxx_std_17)
|
target_compile_features(wcs PRIVATE cxx_std_20)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_SOURCE_DIR}/src/server
|
${CMAKE_SOURCE_DIR}/src/server
|
||||||
|
@ -31,8 +31,8 @@ foreach(_library_type MODULE STATIC)
|
|||||||
|
|
||||||
add_library (${_library_name} ${_library_type} ${WFS_SRCS} ${WFS_HDRS})
|
add_library (${_library_name} ${_library_type} ${WFS_SRCS} ${WFS_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(${_library_name} PRIVATE cxx_std_17)
|
target_compile_features(${_library_name} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(${_library_name} PUBLIC
|
target_include_directories(${_library_name} PUBLIC
|
||||||
${CMAKE_SOURCE_DIR}/src/server
|
${CMAKE_SOURCE_DIR}/src/server
|
||||||
|
@ -42,8 +42,8 @@ foreach(_library_type MODULE STATIC)
|
|||||||
|
|
||||||
add_library(${_library_name} ${_library_type} ${WMS_SRCS} ${WMS_HDRS})
|
add_library(${_library_name} ${_library_type} ${WMS_SRCS} ${WMS_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(${_library_name} PRIVATE cxx_std_17)
|
target_compile_features(${_library_name} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(${_library_name} PUBLIC
|
target_include_directories(${_library_name} PUBLIC
|
||||||
${CMAKE_SOURCE_DIR}/src/server
|
${CMAKE_SOURCE_DIR}/src/server
|
||||||
|
@ -20,8 +20,8 @@ set (WMTS_HDRS
|
|||||||
|
|
||||||
add_library (wmts MODULE ${WMTS_SRCS} ${WMTS_HDRS})
|
add_library (wmts MODULE ${WMTS_SRCS} ${WMTS_HDRS})
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(wmts PRIVATE cxx_std_17)
|
target_compile_features(wmts PRIVATE cxx_std_20)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ add_library(qgis_test ${LIBRARY_TYPE}
|
|||||||
${QGIS_TEST_HDRS}
|
${QGIS_TEST_HDRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_test PRIVATE cxx_std_17)
|
target_compile_features(qgis_test PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_include_directories(qgis_test PUBLIC
|
target_include_directories(qgis_test PUBLIC
|
||||||
${CMAKE_SOURCE_DIR}/src/test
|
${CMAKE_SOURCE_DIR}/src/test
|
||||||
|
@ -11,8 +11,8 @@ set (BENCH_SRCS
|
|||||||
|
|
||||||
add_executable (qgis_bench WIN32 ${BENCH_SRCS} )
|
add_executable (qgis_bench WIN32 ${BENCH_SRCS} )
|
||||||
|
|
||||||
# require c++17
|
# require c++20
|
||||||
target_compile_features(qgis_bench PRIVATE cxx_std_17)
|
target_compile_features(qgis_bench PRIVATE cxx_std_20)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ add_executable(qgis_3d_sandbox
|
|||||||
qgis_3d_sandbox.cpp
|
qgis_3d_sandbox.cpp
|
||||||
)
|
)
|
||||||
# require c++17
|
# require c++17
|
||||||
target_compile_features(qgis_3d_sandbox PRIVATE cxx_std_17)
|
target_compile_features(qgis_3d_sandbox PRIVATE cxx_std_20)
|
||||||
|
|
||||||
set_target_properties(qgis_3d_sandbox PROPERTIES AUTORCC TRUE)
|
set_target_properties(qgis_3d_sandbox PROPERTIES AUTORCC TRUE)
|
||||||
target_link_libraries(qgis_3d_sandbox
|
target_link_libraries(qgis_3d_sandbox
|
||||||
|
@ -14,7 +14,7 @@ if (ENABLE_TESTS)
|
|||||||
set (TESTNAME "test_${ARG_QGIS_TEST_MODULE}_${TESTNAME}")
|
set (TESTNAME "test_${ARG_QGIS_TEST_MODULE}_${TESTNAME}")
|
||||||
add_executable(${TESTNAME} ${TESTSRC} ${util_SRCS})
|
add_executable(${TESTNAME} ${TESTSRC} ${util_SRCS})
|
||||||
# add_custom_target(${TESTNAME}moc ALL DEPENDS ${${TESTNAME}_MOC_SRCS})
|
# add_custom_target(${TESTNAME}moc ALL DEPENDS ${${TESTNAME}_MOC_SRCS})
|
||||||
target_compile_features(${TESTNAME} PRIVATE cxx_std_17)
|
target_compile_features(${TESTNAME} PRIVATE cxx_std_20)
|
||||||
set_target_properties(${TESTNAME} PROPERTIES AUTORCC TRUE)
|
set_target_properties(${TESTNAME} PROPERTIES AUTORCC TRUE)
|
||||||
target_link_libraries(${TESTNAME} ${ARG_QGIS_TEST_LINKEDLIBRARIES})
|
target_link_libraries(${TESTNAME} ${ARG_QGIS_TEST_LINKEDLIBRARIES})
|
||||||
target_link_libraries(${TESTNAME} qgis_test)
|
target_link_libraries(${TESTNAME} qgis_test)
|
||||||
|
@ -84,7 +84,7 @@ if(UNIX AND NOT ANDROID AND CMAKE_BUILD_TYPE MATCHES Debug)
|
|||||||
)
|
)
|
||||||
|
|
||||||
add_executable(test_provider_wcs ${WCSTEST_SRCS} )
|
add_executable(test_provider_wcs ${WCSTEST_SRCS} )
|
||||||
target_compile_features(test_provider_wcs PRIVATE cxx_std_17)
|
target_compile_features(test_provider_wcs PRIVATE cxx_std_20)
|
||||||
target_compile_definitions(test_provider_wcs PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
target_compile_definitions(test_provider_wcs PRIVATE "CMAKE_SOURCE_DIR=\"${CMAKE_SOURCE_DIR}\"")
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
@ -10,7 +10,7 @@ macro (ADD_QGIS_GRASS_TEST grass_build_version testname testsrc)
|
|||||||
set(qgis_${testname}${grass_build_version}_SRCS ${testsrc} ${util_SRCS})
|
set(qgis_${testname}${grass_build_version}_SRCS ${testsrc} ${util_SRCS})
|
||||||
add_custom_target(qgis_${testname}${grass_build_version}moc ALL DEPENDS ${qgis_${testname}${grass_build_version}_MOC_SRCS})
|
add_custom_target(qgis_${testname}${grass_build_version}moc ALL DEPENDS ${qgis_${testname}${grass_build_version}_MOC_SRCS})
|
||||||
add_executable(qgis_${testname}${grass_build_version} ${qgis_${testname}${grass_build_version}_SRCS})
|
add_executable(qgis_${testname}${grass_build_version} ${qgis_${testname}${grass_build_version}_SRCS})
|
||||||
target_compile_features(qgis_${testname}${grass_build_version} PRIVATE cxx_std_17)
|
target_compile_features(qgis_${testname}${grass_build_version} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
${CMAKE_BINARY_DIR}/src/providers/grass/${grass_build_version}
|
${CMAKE_BINARY_DIR}/src/providers/grass/${grass_build_version}
|
||||||
|
@ -38,7 +38,7 @@ add_executable(${QGIS_QUICK_APP_NAME}
|
|||||||
${QGIS_QUICK_APP_MOC_SRCS}
|
${QGIS_QUICK_APP_MOC_SRCS}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features(${QGIS_QUICK_APP_NAME} PRIVATE cxx_std_17)
|
target_compile_features(${QGIS_QUICK_APP_NAME} PRIVATE cxx_std_20)
|
||||||
|
|
||||||
target_link_libraries(${QGIS_QUICK_APP_NAME}
|
target_link_libraries(${QGIS_QUICK_APP_NAME}
|
||||||
${QT_VERSION_BASE}::Gui
|
${QT_VERSION_BASE}::Gui
|
||||||
|
Loading…
x
Reference in New Issue
Block a user