create a find script depending on on the qt version
This commit is contained in:
parent
cb85ec1598
commit
6df1632308
|
@ -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)
|
if(KDE4_FOUND AND WITH_SNORE_DEAMON)
|
||||||
install(FILES snorenotify.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/snorenotify.desktop.in" "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" @ONLY)
|
||||||
endif(KDE4_FOUND)
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" DESTINATION ${XDG_APPS_INSTALL_DIR})
|
||||||
|
endif(KDE4_FOUND AND WITH_SNORE_DEAMON)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_subdirectory(snoretoast)
|
add_subdirectory(snoretoast)
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
|
@ -13,8 +13,8 @@ find_path(LIBSNORE_INCLUDE_DIR
|
||||||
|
|
||||||
find_library(LIBSNORE_LIBRARY
|
find_library(LIBSNORE_LIBRARY
|
||||||
NAMES
|
NAMES
|
||||||
libsnore
|
libsnore@SNORE_SUFFIX@
|
||||||
snore
|
snore@SNORE_SUFFIX@
|
||||||
PATHS ${KDE4_LIB_DIR}
|
PATHS ${KDE4_LIB_DIR}
|
||||||
)
|
)
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
Loading…
Reference in New Issue