FindLTTngUST¶
在 3.6 版被加入.
Finds the LTTng (Linux Trace Toolkit: next generation) user space tracing library (LTTng-UST):
find_package(LTTngUST [<version>] [...])
Imported Targets¶
This module provides the following Imported Targets:
LTTng::UST
Target providing the LTTng-UST library usage requirements. This target is available only when LTTng-UST is found.
結果變數¶
該模組定義了以下變數:
LTTngUST_FOUND
Boolean indicating whether the (requested version of) LTTng-UST library was found.
LTTngUST_VERSION
在 4.2 版被加入.
The LTTng-UST version.
LTTNGUST_HAS_TRACEF
TRUE
if thetracef()
API is available in the system's LTTng-UST.LTTNGUST_HAS_TRACELOG
TRUE
if thetracelog()
API is available in the system's LTTng-UST.
快取變數¶
The following cache variables may also be set:
LTTNGUST_INCLUDE_DIRS
The LTTng-UST include directories.
LTTNGUST_LIBRARIES
The libraries needed to use LTTng-UST.
已棄用的變數¶
The following variables are provided for backward compatibility:
LTTNGUST_FOUND
在 4.2 版之後被棄用: Use
LTTngUST_FOUND
, which has the same value.Boolean indicating whether the (requested version of) LTTng-UST library was found.
LTTNGUST_VERSION_STRING
在 4.2 版之後被棄用: Superseded by the
LTTngUST_VERSION
.The LTTng-UST version.
範例¶
Finding the LTTng-UST library and linking it to a project target:
find_package(LTTugNST)
target_link_libraries(project_target PRIVATE LTTng::UST)