procwatch/overlays/libnotify/libnotify-config.cmake

14 lines
441 B
CMake

if(NOT PKG_CONFIG_FOUND)
include(CMakeFindDependencyMacro)
find_dependency(PkgConfig)
endif()
pkg_check_modules(LIBNOTIFY REQUIRED libnotify)
if(NOT TARGET libnotify::libnotify)
add_library(libnotify::libnotify INTERFACE IMPORTED)
set_target_properties(libnotify::libnotify PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${LIBNOTIFY_INCLUDE_DIRS}"
INTERFACE_LINK_LIBRARIES "${LIBNOTIFY_LIBRARIES}"
)
endif()