on 89ff34e help sign in
unity8/plugins/Unity/Launcher/CMakeLists.txt
50 lines 1.5 kB history raw
1pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=9)
2pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
4add_definitions(-DSM_BUSNAME=systemBus)
6include_directories(
7 ${CMAKE_CURRENT_SOURCE_DIR}
8 ${CMAKE_SOURCE_DIR}/plugins/AccountsService
9 ${libunity8-private_SOURCE_DIR}
12include_directories(
13 SYSTEM
14 ${GSETTINGS_QT_INCLUDE_DIRS}
15 ${GLIB_INCLUDE_DIRS}
16 ${UAL_INCLUDE_DIRS}
17 )
19set(QMLLAUNCHERPLUGIN_SRC
20 plugin.cpp
21 launchermodel.cpp
22 launcheritem.cpp
23 quicklistmodel.cpp
24 quicklistentry.cpp
25 dbusinterface.cpp
26 gsettings.cpp
27 asadapter.cpp
28 ${CMAKE_SOURCE_DIR}/plugins/AccountsService/AccountsServiceDBusAdaptor.cpp
29 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
30 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
31 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/MirSurfaceListInterface.h
32 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
33 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
34 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
35 )
37add_library(UnityLauncher-qml MODULE
38 ${QMLLAUNCHERPLUGIN_SRC}
39 )
41target_link_libraries(UnityLauncher-qml
42 unity8-private
43 ${GSETTINGS_QT_LDFLAGS}
44 ${GLIB_LIBRARIES}
45 ${UAL_LIBRARIES}
46 )
48qt5_use_modules(UnityLauncher-qml DBus Qml Gui)
50add_unity8_plugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)