mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
b7d452d2a0
Add libnotify support for linux client Also unify notification management Make libnotify mandatory for the client. It is installed on 100% of Arch Linux systems and on 70% of Debian systems. I'd guess the remaining Debian systems are servers. Detect dependent libraries of `libnotify` using `pkg-config`. Remove library-specific code from the game module. Decrement refcount for libnotify notification object before leaving the function.
5 lines
223 B
CMake
5 lines
223 B
CMake
find_package(PkgConfig REQUIRED QUIET)
|
|
pkg_check_modules(NOTIFY REQUIRED QUIET libnotify)
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(LibNotify DEFAULT_MSG NOTIFY_LIBRARIES NOTIFY_INCLUDE_DIRS)
|