on 2139c25 help sign in
unity8/plugins/Unity/Launcher/CMakeLists.txt
36 lines 1.1 kB history raw
1include(FindPkgConfig)
2pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=2)
3pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
5add_definitions(-DSM_BUSNAME=systemBus)
7include_directories(
8 ${CMAKE_CURRENT_SOURCE_DIR}
9 ${CMAKE_SOURCE_DIR}/plugins/AccountsService
10 ${GSETTINGS_QT_INCLUDE_DIRS}
13set(QMLLAUNCHERPLUGIN_SRC
14 plugin.cpp
15 launchermodel.cpp
16 launcheritem.cpp
17 quicklistmodel.cpp
18 common/quicklistentry.cpp
19 backend/launcherbackend.cpp
20 ${CMAKE_SOURCE_DIR}/plugins/AccountsService/AccountsService.cpp
21 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherItemInterface.h
22 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/LauncherModelInterface.h
23 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/launcher/QuickListModelInterface.h
24 )
26add_library(UnityLauncher-qml MODULE
27 ${QMLLAUNCHERPLUGIN_SRC}
28 )
30target_link_libraries(UnityLauncher-qml ${GSETTINGS_QT_LDFLAGS})
32qt5_use_modules(UnityLauncher-qml DBus Qml)
34# export the qmldir and qmltypes files
35export_qmlfiles(Unity.Launcher Unity/Launcher)
36export_qmlplugin(Unity.Launcher 0.1 Unity/Launcher TARGETS UnityLauncher-qml)