fix linux build

This commit is contained in:
Patrick von Reth 2015-02-01 18:35:19 +01:00
parent f1e78e31ed
commit 8be2a991a0
4 changed files with 7 additions and 9 deletions

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -1,5 +1,5 @@
<RCC>
<qresource prefix="/root">
<file alias="snore.png">128-snore.png</file>
<file alias="snore.png">128-apps-snore.png</file>
</qresource>
</RCC>

View File

@ -1,6 +1,7 @@
if(WITH_SNORE_DAEMON)
include(ECMAddAppIcon)
ecm_add_app_icon(SNORENOTIFY_DEAMON_DEPS ICONS ${PROJECT_SOURCE_DIR}/data/128-snore.png)
include(ECMInstallIcons)
ecm_add_app_icon(SNORENOTIFY_DEAMON_DEPS ICONS ${PROJECT_SOURCE_DIR}/data/128-apps-snore.png)
add_executable( snorenotify WIN32 main.cpp snorenotify.cpp trayicon.cpp ${SNORENOTIFY_DEAMON_DEPS})
target_link_libraries( snorenotify libsnore Qt5::Gui Qt5::Widgets )
@ -9,9 +10,9 @@ if(WITH_SNORE_DAEMON)
ARCHIVE DESTINATION lib)
if(UNIX)
install(FILES ${PROJECT_SOURCE_DIR }/data/128-snore.png DESTINATION ${KDE_ICONDIR}/snore.png)
ecm_install_icons(ICONS ${PROJECT_SOURCE_DIR}/data/128-apps-snore.png DESTINATION ${KDE_INSTALL_ICONDIR})
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 ${KDE_APPDIR})
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/snorenotify.desktop" DESTINATION ${KDE_INSTALL_APPDIR})
endif()
endif()

View File

@ -3,10 +3,7 @@ if(NOT WITH_FREEDESKTOP_FRONTEND AND UNIX AND NOT APPLE)
set_package_properties(Qt5DBus PROPERTIES
PURPOSE "Support for Freedesktop Notifications"
TYPE OPTIONAL)
set(QT_QTDBUS_FOUND TRUE)
set(QT_QTDBUS_LIBRARY Qt5::DBus)
if(QT_QTDBUS_FOUND)
if(Qt5DBus_FOUND)
message(STATUS "Adding Freedesktop notification backend")
set ( FREEDESKTOP_NOTIFICATION_SRC