2015-11-17 18:23:32 -02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								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()
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-06 23:19:17 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									# Not really grantlee, but rather printing in general
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-20 11:49:56 -02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									LIST(APPEND QT_EXTRA_COMPONENTS PrintSupport)
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-06 23:19:17 +02:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									# Because Qt5WebKitWidgets isn't a part of the "regular" Qt5, we can't get it the normal way
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									#LIST(APPEND QT_EXTRA_COMPONENTS WebKitWidgets)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									find_package(Qt5WebKitWidgets REQUIRED)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									set(GRANTLEE_LIBRARIES ${GRANTLEE_LIBRARIES} Qt5::WebKitWidgets)
							 | 
						
					
						
							
								
									
										
										
										
											2015-11-17 18:23:32 -02:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								endif()
							 |