on 551c708 help sign in
unity8/plugins/Unity/Launcher/CMakeLists.txt
37 lines 1.2 kB history raw
1include(FindPkgConfig)
2pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=3)
3pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=1)
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}
14set(QMLLAUNCHERPLUGIN_SRC
15 plugin.cpp
16 launchermodel.cpp
17 launcheritem.cpp
18 quicklistmodel.cpp
19 common/quicklistentry.cpp
20 backend/launcherbackend.cpp
21 ${CMAKE_SOURCE_DIR}/plugins/AccountsService/AccountsServiceDBusAdaptor.cpp
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(UnityLauncher-qml MODULE
28 ${QMLLAUNCHERPLUGIN_SRC}
29 )
31target_link_libraries(UnityLauncher-qml ${GSETTINGS_QT_LDFLAGS})
33qt5_use_modules(UnityLauncher-qml DBus Qml)
35# export the qmldir and qmltypes files
36export_qmlfiles(Unity.Launcher Unity/Launcher)
37export_qmlplugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)