on 239fdcc help sign in
unity8/plugins/Unity/Launcher/CMakeLists.txt
43 lines 1.3 kB history raw
1pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=7)
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 ${GSETTINGS_QT_INCLUDE_DIRS}
10 ${GLIB_INCLUDE_DIRS}
11 ${libunity8-private_SOURCE_DIR}
14set(QMLLAUNCHERPLUGIN_SRC
15 plugin.cpp
16 launchermodel.cpp
17 launcheritem.cpp
18 quicklistmodel.cpp
19 quicklistentry.cpp
20 dbusinterface.cpp
21 gsettings.cpp
22 desktopfilehandler.cpp
23 asadapter.cpp
24 ${CMAKE_SOURCE_DIR}/plugins/AccountsService/AccountsServiceDBusAdaptor.cpp
25 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
26 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
27 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
28 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
29 )
31add_library(UnityLauncher-qml MODULE
32 ${QMLLAUNCHERPLUGIN_SRC}
33 )
35target_link_libraries(UnityLauncher-qml
36 unity8-private
37 ${GSETTINGS_QT_LDFLAGS}
38 ${GLIB_LIBRARIES}
39 )
41qt5_use_modules(UnityLauncher-qml DBus Qml Gui)
43add_unity8_plugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)