Added in version 3.6.
Finds the LTTng (Linux Trace Toolkit: next generation) user space tracing library (LTTng-UST):
find_package(LTTngUST [<version>] [...])
This module provides the following Imported Targets:
LTTng::USTTarget providing the LTTng-UST library usage requirements. This target is available only when LTTng-UST is found.
This module defines the following variables:
LTTngUST_FOUNDBoolean indicating whether the (requested version of) LTTng-UST library was found.
LTTngUST_VERSIONAdded in version 4.2.
The LTTng-UST version.
LTTNGUST_HAS_TRACEFTRUE if the tracef() API is available in the system's LTTng-UST.
LTTNGUST_HAS_TRACELOGTRUE if the tracelog() API is available in the system's LTTng-UST.
The following cache variables may also be set:
LTTNGUST_INCLUDE_DIRSThe LTTng-UST include directories.
LTTNGUST_LIBRARIESThe libraries needed to use LTTng-UST.
The following variables are provided for backward compatibility:
LTTNGUST_FOUNDDeprecated since version 4.2: Use LTTngUST_FOUND, which has the same value.
Boolean indicating whether the (requested version of) LTTng-UST library was found.
LTTNGUST_VERSION_STRINGDeprecated since version 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)