mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
62c6a19744
This can be easily derived from QT_EXTRA_COMPONENTS. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
14 lines
403 B
CMake
14 lines
403 B
CMake
if(NO_PRINTING)
|
|
message(STATUS "building without printing support")
|
|
add_definitions(-DNO_PRINTING)
|
|
set(GRANTLEE_LIBRARIES "")
|
|
else()
|
|
if(LIBGRANTLEE_FROM_PKGCONFIG)
|
|
pkg_config_library(GRANTLEE libgrantlee REQUIRED)
|
|
set(GRANTLEE_LIBRARIES "")
|
|
else()
|
|
find_package(Grantlee5 REQUIRED)
|
|
set(GRANTLEE_LIBRARIES Grantlee5::Templates)
|
|
endif()
|
|
LIST(APPEND QT_EXTRA_COMPONENTS PrintSupport)
|
|
endif()
|