1 2 3 4 5 6 7
include(FindPkgConfig) pkg_check_modules(XComposite xcomposite IMPORTED_TARGET) if (NOT TARGET PkgConfig::XComposite) set(XComposite_FOUND 0) endif()