diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2019-02-11 18:27:52 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2019-02-12 09:20:20 +0000 |
commit | 3882e9ea09ec9062fd3c711ae6caadb69b67c752 (patch) | |
tree | 827885cd1335baf78e3863da79b8fdbffa476703 /src/printsupport | |
parent | 71c9db7da804cc169c7c42c763555d85657a9669 (diff) |
cmake: Find Cups and enable its plugin
Change-Id: I44bf176587331d86eb147d106f28deb0a6618ab4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/printsupport')
-rw-r--r-- | src/printsupport/configure.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/printsupport/configure.cmake b/src/printsupport/configure.cmake index a443e333fc..40aab5d9f7 100644 --- a/src/printsupport/configure.cmake +++ b/src/printsupport/configure.cmake @@ -6,6 +6,8 @@ #### Libraries +find_package(Cups) +set_package_properties(Cups PROPERTIES TYPE OPTIONAL) #### Tests @@ -18,7 +20,7 @@ qt_feature("cups" PUBLIC PRIVATE SECTION "Painting" LABEL "CUPS" PURPOSE "Provides support for the Common Unix Printing System." - CONDITION libs.cups AND QT_FEATURE_printer AND QT_FEATURE_datestring OR FIXME + CONDITION Cups_FOUND AND QT_FEATURE_printer AND QT_FEATURE_datestring ) qt_feature_definition("cups" "QT_NO_CUPS" NEGATE VALUE "1") qt_feature("cupsjobwidget" PUBLIC PRIVATE |