summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/HandleFindGrantlee.cmake
blob: 0abb763df0d5ad315e929f013f5c28058f8b2964 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
	set(PRINTING_PKG PrintSupport)
	set(PRINTING_LIB Qt5::PrintSupport)
endif()