on 02fa86a help sign in
38 lines 1.3 kB history raw
1pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=6)
2pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=5)
3pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
5add_definitions(-DSM_BUSNAME=systemBus)
7include_directories(
8 ${CMAKE_CURRENT_SOURCE_DIR}
9 ${CMAKE_SOURCE_DIR}/plugins/AccountsService
10 ${GSETTINGS_QT_INCLUDE_DIRS}
11 ${libunity8-private_SOURCE_DIR}
14set(QMLLAUNCHERPLUGINAS_SRC
15 plugin.cpp
16 launchermodelas.cpp
17 launcheritem.cpp
18 quicklistmodel.cpp
19 quicklistentry.cpp
20 ${CMAKE_SOURCE_DIR}/plugins/AccountsService/AccountsServiceDBusAdaptor.cpp
21 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
22 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
23 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
24 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
25 )
27add_library(UnityLauncherAS-qml MODULE
28 ${QMLLAUNCHERPLUGINAS_SRC}
29 )
31target_link_libraries(UnityLauncherAS-qml
32 unity8-private
33 ${GSETTINGS_QT_LDFLAGS}
34 )
36qt5_use_modules(UnityLauncherAS-qml DBus Qml Gui)
38add_unity8_greeter_plugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncherAS-qml)