on a72d409 help sign in
unity8/plugins/Unity/Launcher/CMakeLists.txt
41 lines 1.2 kB history raw
1include(FindPkgConfig)
2pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=5)
3pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=5)
4pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
6add_definitions(-DSM_BUSNAME=systemBus)
8include_directories(
9 ${CMAKE_CURRENT_SOURCE_DIR}
10 ${CMAKE_SOURCE_DIR}/plugins/AccountsService
11 ${GSETTINGS_QT_INCLUDE_DIRS}
12 ${libunity8-private_SOURCE_DIR}
15set(QMLLAUNCHERPLUGIN_SRC
16 plugin.cpp
17 launchermodel.cpp
18 launcheritem.cpp
19 quicklistmodel.cpp
20 quicklistentry.cpp
21 dbusinterface.cpp
22 gsettings.cpp
23 desktopfilehandler.cpp
24 ${CMAKE_SOURCE_DIR}/plugins/AccountsService/AccountsServiceDBusAdaptor.cpp
25 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
26 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
27 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
28 )
30add_library(UnityLauncher-qml MODULE
31 ${QMLLAUNCHERPLUGIN_SRC}
32 )
34target_link_libraries(UnityLauncher-qml
35 unity8-private
36 ${GSETTINGS_QT_LDFLAGS}
37 )
39qt5_use_modules(UnityLauncher-qml DBus Qml Gui)
41add_unity8_plugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)