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