FindCups¶
Finds the Common UNIX Printing System (CUPS):
find_package(Cups [<version>] [...])
Imported Targets¶
This module provides the following Imported Targets:
Cups::Cups在 3.15 版被加入.
Target encapsulating the CUPS usage requirements, available only if CUPS is found.
結果變數¶
該模組定義了以下變數:
Cups_FOUND在 3.3 版被加入.
Boolean indicating whether (the requested version of) CUPS was found.
Cups_VERSION在 4.2 版被加入.
The version of CUPS found.
CUPS_INCLUDE_DIRSInclude directories needed for using CUPS.
快取變數¶
The following cache variables may also be set:
CUPS_INCLUDE_DIRThe directory containing the CUPS headers.
CUPS_LIBRARIESLibraries needed to link against to use CUPS.
提示¶
This module accepts the following variables:
CUPS_REQUIRE_IPP_DELETE_ATTRIBUTESet this variable to
TRUEto require CUPS version which features theippDeleteAttribute()function (i.e. at least of CUPS1.1.19).
已棄用的變數¶
The following variables are provided for backward compatibility:
CUPS_FOUND在 4.2 版之後被棄用: Use
Cups_FOUND, which has the same value.Boolean indicating whether (the requested version of) CUPS was found.
CUPS_VERSION_STRING在 4.2 版之後被棄用: Superseded by the
Cups_VERSION.The version of CUPS found.
範例¶
Finding CUPS and linking it to a project target:
find_package(Cups)
target_link_libraries(project_target PRIVATE Cups::Cups)