FindCanberra — Extra CMake Modules 6.31.0 documentation

# FindCanberra

Try to find Canberra event sound library.

This will define the following variables:

`Canberra_FOUND`

  True if (the requested version of) Canberra is available

`Canberra_VERSION`

  The version of Canberra

`Canberra_LIBRARIES`

  The libraries of Canberra for use with target_link_libraries()

`Canberra_INCLUDE_DIRS`

  The include dirs of Canberra for use with target_include_directories()

If `Canberra_FOUND` is TRUE, it will also define the following imported target:

`Canberra::Canberra`

  The Canberra library

In general we recommend using the imported target, as it is easier to use. Bear in mind, however, that if the target is in the link interface of an exported library, it must be made available by the package config file.

Since 5.56.0.