Policies/ExperimentalKDELibsCMakeLists.txt: Difference between revisions
< Policies
m (moved CMakeLists.txt to Policies/ExperimentalKDELibsCMakeLists.txt: simply put it in the wrong place; been too long since i used techbase :)) |
Neverendingo (talk | contribs) m (Text replace - "</code>" to "</syntaxhighlight>") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <syntaxhighlight lang="xml"> | ||
# Project needs a name of course | # Project needs a name of course | ||
project(notification) | project(notification) | ||
Line 44: | Line 44: | ||
DESTINATION ${KDE4_DBUS_INTERFACES_DIR}) | DESTINATION ${KDE4_DBUS_INTERFACES_DIR}) | ||
}} | }} | ||
</ | </syntaxhighlight> |
Revision as of 20:57, 29 June 2011
# Project needs a name of course
project(notification)
add_subdirectory(cmake)
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${KDE4_INCLUDES}
)
set(knotificationitem_SRCS knotificationitem.cpp knotificationitemdbus_p.cpp)
set(knotificationitemtest_SRC test/knotificationitemtest.cpp)
QT4_ADD_DBUS_ADAPTOR(knotificationitem_SRCS org.kde.NotificationItem.xml
knotificationitemdbus_p.h Experimental::KNotificationItemDBus)
set(systemtraydaemon_xml org.kde.NotificationItemWatcher.xml)
QT4_ADD_DBUS_INTERFACE(knotificationitem_SRCS ${systemtraydaemon_xml} notificationwatcher_interface)
set(visualnotifications_xml org.kde.VisualNotifications.xml)
QT4_ADD_DBUS_INTERFACE(knotificationitem_SRCS ${visualnotifications_xml} visualnotifications_interface)
kde4_add_library(knotificationitem-1 SHARED ${knotificationitem_SRCS})
set_target_properties(knotificationitem-1 PROPERTIES VERSION 1.0.0 SOVERSION 1)
target_link_libraries(knotificationitem-1 ${KDE4_KDEUI_LIBS})
kde4_add_executable(knotificationitemtest ${knotificationitemtest_SRC})
target_link_libraries(knotificationitemtest ${KDE4_KDEUI_LIBS} knotificationitem-1)
install(TARGETS knotificationitem-1 EXPORT kdelibsLibraryTargets ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES
knotificationitem.h
knotificationitem_export.h
DESTINATION ${INCLUDE_INSTALL_DIR}/knotificationitem-1 COMPONENT Devel)
install(FILES
org.kde.NotificationItem.xml
org.kde.NotificationItemWatcher.xml
DESTINATION ${KDE4_DBUS_INTERFACES_DIR})
}}