subsurface/cmake/Modules/HandleFindGrantlee.cmake
Tomaz Canabrava aaafaade5e Use a single variable to handle the extra Qt stuff
It's easier to debug what's wrong this way

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
2015-12-16 08:00:31 -08:00

15 lines
454 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)
LIST(APPEND QT_EXTRA_LIBRARIES Qt5::PrintSupport)
endif()