create a find script depending on on the qt version

This commit is contained in:
Patrick von Reth 2014-03-23 21:26:44 +01:00
parent cb85ec1598
commit 6df1632308
4 changed files with 19 additions and 17 deletions

View File

@ -1,9 +1,11 @@
install(FILES FindLibsnore.cmake DESTINATION share/apps/cmake/modules)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/FindLibsnore.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_SUFFIX}.cmake" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/FindLibsnore${SNORE_SUFFIX}.cmake" DESTINATION share/apps/cmake/modules)
if(KDE4_FOUND)
install(FILES snorenotify.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
endif(KDE4_FOUND)
if(KDE4_FOUND AND WITH_SNORE_DEAMON)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/snorenotify.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" DESTINATION ${XDG_APPS_INSTALL_DIR})
endif(KDE4_FOUND AND WITH_SNORE_DEAMON)
if(WIN32)
add_subdirectory(snoretoast)
endif(WIN32)
endif(WIN32)

View File

@ -13,8 +13,8 @@ find_path(LIBSNORE_INCLUDE_DIR
find_library(LIBSNORE_LIBRARY
NAMES
libsnore
snore
libsnore@SNORE_SUFFIX@
snore@SNORE_SUFFIX@
PATHS ${KDE4_LIB_DIR}
)

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Type=Application
Version=0.15
Name=SnoreNotify
Comment=An application which redirects dbus notifications to a unifided notification backend
Icon=snore
Exec=snorenotify
Categories=Qt;System;
X-KDE-StartupNotify=true
X-DBUS-StartupType=Unique

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Version=@SNORE_VERSION_MAJOR@.@SNORE_VERSION_MINOR@@SNORE_VERSION_SUFFIX@
Name=SnoreNotify
Comment=An application redirecting freedesktop notifications to a unified notification backed
Icon=snore
Exec=snorenotify@SNORE_SUFFIX@
Categories=Qt;System;
X-KDE-StartupNotify=true
X-DBUS-StartupType=Unique