diff options
author | fiaxh <git@mx.ax.lt> | 2017-09-19 22:41:33 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-09-19 23:39:17 +0200 |
commit | 8fdb38b99be9c588148d576c23212af765ff7302 (patch) | |
tree | 2971a06390d8499a19487c3832df994f1769f6ea /cmake | |
parent | 1f0df864453f4fd9c3d8ba2d90f3def26cbdf862 (diff) | |
download | dino-8fdb38b99be9c588148d576c23212af765ff7302.tar.gz dino-8fdb38b99be9c588148d576c23212af765ff7302.zip |
Use GNotification instead of libnotify
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindLibnotify.cmake | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/cmake/FindLibnotify.cmake b/cmake/FindLibnotify.cmake deleted file mode 100644 index 61eae949..00000000 --- a/cmake/FindLibnotify.cmake +++ /dev/null @@ -1,32 +0,0 @@ -include(PkgConfigWithFallback) -find_pkg_config_with_fallback(Libnotify - PKG_CONFIG_NAME libnotify - LIB_NAMES notify - INCLUDE_NAMES libnotify/notify.h - DEPENDS GIO GDKPixbuf2 -) - -if(Libnotify_FOUND AND NOT Libnotify_VERSION) - find_file(Libnotify_FEATURES_HEADER "libnotify/notify-features.h" HINTS ${Libnotify_INCLUDE_DIRS}) - mark_as_advanced(Libnotify_FEATURES_HEADER) - - if(Libnotify_FEATURES_HEADER) - file(STRINGS "${Libnotify_FEATURES_HEADER}" Libnotify_MAJOR_VERSION REGEX "^#define NOTIFY_VERSION_MAJOR +\\(?([0-9]+)\\)?$") - string(REGEX REPLACE "^#define NOTIFY_VERSION_MAJOR +\\(?([0-9]+)\\)?$" "\\1" Libnotify_MAJOR_VERSION "${Libnotify_MAJOR_VERSION}") - file(STRINGS "${Libnotify_FEATURES_HEADER}" Libnotify_MINOR_VERSION REGEX "^#define NOTIFY_VERSION_MINOR +\\(?([0-9]+)\\)?$") - string(REGEX REPLACE "^#define NOTIFY_VERSION_MINOR +\\(?([0-9]+)\\)?$" "\\1" Libnotify_MINOR_VERSION "${Libnotify_MINOR_VERSION}") - file(STRINGS "${Libnotify_FEATURES_HEADER}" Libnotify_MICRO_VERSION REGEX "^#define NOTIFY_VERSION_MICRO +\\(?([0-9]+)\\)?$") - string(REGEX REPLACE "^#define NOTIFY_VERSION_MICRO +\\(?([0-9]+)\\)?$" "\\1" Libnotify_MICRO_VERSION "${Libnotify_MICRO_VERSION}") - set(Libnotify_VERSION "${Libnotify_MAJOR_VERSION}.${Libnotify_MINOR_VERSION}.${Libnotify_MICRO_VERSION}") - unset(Libnotify_MAJOR_VERSION) - unset(Libnotify_MINOR_VERSION) - unset(Libnotify_MICRO_VERSION) - endif() -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Libnotify - FOUND_VAR Libnotify_FOUND - REQUIRED_VARS Libnotify_LIBRARY - VERSION_VAR Libnotify_VERSION -)
\ No newline at end of file |