mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Add support for grass8
This commit is contained in:
parent
6cb2f64195
commit
e6072c937c
@ -119,9 +119,8 @@ set (WITH_CORE TRUE CACHE BOOL "Determines whether QGIS core should be built.")
|
||||
mark_as_advanced(WITH_CORE)
|
||||
|
||||
if(WITH_CORE)
|
||||
# Only GRASS 7 is currently supported but we keep dual version support in cmake for possible future switch to GRASS 8.
|
||||
# Try to configure and build GRASS plugin by default
|
||||
foreach (GRASS_SEARCH_VERSION 7)
|
||||
foreach (GRASS_SEARCH_VERSION 7 8)
|
||||
# Legacy note:
|
||||
# For GRASS 6 there were used cached variables without version suffix so that existing caches didn't have to be reconfigured.
|
||||
# Cached variables were: WITH_GRASS, WITH_GRASS7, GRASS_PREFIX, GRASS_PREFIX7, GRASS_INCLUDE_DIR, GRASS_INCLUDE_DIR7
|
||||
|
2
src/plugins/grass/8/CMakeLists.txt
Normal file
2
src/plugins/grass/8/CMakeLists.txt
Normal file
@ -0,0 +1,2 @@
|
||||
include_directories(${GRASS_INCLUDE_DIR8} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
ADD_GRASSPLUGIN(8)
|
@ -251,7 +251,7 @@ if(NOT WIN32)
|
||||
install(DIRECTORY qtermwidget/color-schemes/ DESTINATION "${COLORSCHEMES_DIR}" FILES_MATCHING PATTERN "*.*schem*")
|
||||
endif()
|
||||
|
||||
foreach(GRASS_BUILD_VERSION 6 7) # GRASS 6 and GRASS 7
|
||||
foreach(GRASS_BUILD_VERSION 6 7 8)
|
||||
if(GRASS_FOUND${GRASS_BUILD_VERSION})
|
||||
add_subdirectory(${GRASS_BUILD_VERSION})
|
||||
endif()
|
||||
|
@ -40,7 +40,7 @@ if (NOT FORCE_STATIC_LIBS)
|
||||
add_subdirectory(pdal)
|
||||
endif()
|
||||
|
||||
if (WITH_GRASS OR WITH_GRASS7)
|
||||
if (WITH_GRASS OR WITH_GRASS7 OR WITH_GRASS8)
|
||||
add_subdirectory(grass)
|
||||
endif()
|
||||
endif()
|
||||
|
7
src/providers/grass/8/CMakeLists.txt
Normal file
7
src/providers/grass/8/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
include_directories( SYSTEM
|
||||
${GRASS_INCLUDE_DIR8}
|
||||
)
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
ADD_GRASSLIB(8)
|
@ -319,7 +319,7 @@ macro(ADD_GRASSLIB GRASS_BUILD_VERSION)
|
||||
)
|
||||
endmacro(ADD_GRASSLIB)
|
||||
|
||||
foreach(GRASS_BUILD_VERSION 6 7) # GRASS 6 and GRASS 7
|
||||
foreach(GRASS_BUILD_VERSION 6 7 8)
|
||||
if(GRASS_FOUND${GRASS_BUILD_VERSION})
|
||||
add_subdirectory(${GRASS_BUILD_VERSION})
|
||||
endif()
|
||||
|
2
tests/src/providers/grass/8/CMakeLists.txt
Normal file
2
tests/src/providers/grass/8/CMakeLists.txt
Normal file
@ -0,0 +1,2 @@
|
||||
include_directories(${GRASS_INCLUDE_DIR8} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
ADD_QGIS_GRASS_TESTS(8)
|
@ -86,8 +86,8 @@ macro (ADD_QGIS_GRASS_TESTS version)
|
||||
endif()
|
||||
endmacro (ADD_QGIS_GRASS_TESTS)
|
||||
|
||||
foreach(GRASS_BUILD_VERSION 6 7)
|
||||
foreach(GRASS_BUILD_VERSION 6 7 8)
|
||||
if(GRASS_FOUND${GRASS_BUILD_VERSION})
|
||||
add_subdirectory(${GRASS_BUILD_VERSION})
|
||||
endif()
|
||||
endforeach(GRASS_BUILD_VERSION 6 7)
|
||||
endforeach(GRASS_BUILD_VERSION 6 7 8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user