From 27369b004f74c1b7b61a5d3bcd9117fe3fe8549b Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 2 Jul 2015 15:12:30 +0200 Subject: [PATCH] always build plugin --- .../frontends/freedesktop/CMakeLists.txt | 52 +++++++++---------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/src/plugins/frontends/freedesktop/CMakeLists.txt b/src/plugins/frontends/freedesktop/CMakeLists.txt index 2934aab..6fe0b5b 100644 --- a/src/plugins/frontends/freedesktop/CMakeLists.txt +++ b/src/plugins/frontends/freedesktop/CMakeLists.txt @@ -1,39 +1,37 @@ -if(WIN32 OR APPLE) - find_package(Qt5DBus QUIET) - set_package_properties(Qt5DBus PROPERTIES - PURPOSE "Support for the Freedesktop Notification Frontend." - TYPE OPTIONAL) +find_package(Qt5DBus QUIET) +set_package_properties(Qt5DBus PROPERTIES + PURPOSE "Support for the Freedesktop Notification Frontend." + TYPE OPTIONAL) - if(Qt5DBus_FOUND) - message(STATUS "Adding freedesktop notification frontend") +if(Qt5DBus_FOUND) + message(STATUS "Adding freedesktop notification frontend") - set( FREEDESKTOP_NOTIFICATION_FRONTEND_SRC - freedesktopnotificationfrontend.cpp - ../../backends/freedesktop/fredesktopnotification.cpp - ) + set( FREEDESKTOP_NOTIFICATION_FRONTEND_SRC + freedesktopnotificationfrontend.cpp + ../../backends/freedesktop/fredesktopnotification.cpp + ) - qt5_add_dbus_adaptor( FREEDESKTOP_NOTIFICATION_FRONTEND_SRC org.freedesktop.Notifications.xml freedesktopnotificationfrontend.h FreedesktopFrontend) + qt5_add_dbus_adaptor( FREEDESKTOP_NOTIFICATION_FRONTEND_SRC org.freedesktop.Notifications.xml freedesktopnotificationfrontend.h FreedesktopFrontend) - add_library(libsnore_frontend_freedesktop MODULE ${FREEDESKTOP_NOTIFICATION_FRONTEND_SRC} ) - target_link_libraries(libsnore_frontend_freedesktop Snore::Libsnore Qt5::DBus ) + add_library(libsnore_frontend_freedesktop MODULE ${FREEDESKTOP_NOTIFICATION_FRONTEND_SRC} ) + target_link_libraries(libsnore_frontend_freedesktop Snore::Libsnore Qt5::DBus ) - #install the dbus interface - if(WITH_SNORE_DAEMON) - if(WIN32) - set(SNORE_LOCATION ../bin/snorenotify) - else() - set(SNORE_LOCATION ${CMAKE_INSTALL_PREFIX}/bin/snorenotify) - endif() - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.Notifications.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service) + #install the dbus interface + if(WITH_SNORE_DAEMON) + if(WIN32) + set(SNORE_LOCATION ../bin/snorenotify) + else() + set(SNORE_LOCATION ${CMAKE_INSTALL_PREFIX}/bin/snorenotify) + endif() + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.Notifications.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service - DESTINATION share/dbus-1/services/) - endif(WITH_SNORE_DAEMON) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Notifications.service + DESTINATION share/dbus-1/services/) + endif(WITH_SNORE_DAEMON) - install(TARGETS libsnore_frontend_freedesktop ${SNORE_PLUGIN_INSTALL_PATH}) + install(TARGETS libsnore_frontend_freedesktop ${SNORE_PLUGIN_INSTALL_PATH}) - endif() endif()