1# export_qmlplugin macro
6pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32)
7pkg_check_modules(GIO REQUIRED gio-2.0>=2.32)
8pkg_check_modules(QMENUMODEL REQUIRED qmenumodel)
9pkg_check_modules(LIBUPSTART REQUIRED libupstart libnih libnih-dbus dbus-1)
11find_package(Qt5Core REQUIRED)
12find_package(Qt5Quick REQUIRED)
17 ${CMAKE_CURRENT_SOURCE_DIR}
18 ${CMAKE_CURRENT_BINARY_DIR}
21 ${QMENUMODEL_INCLUDE_DIRS}
22 ${LIBUPSTART_INCLUDE_DIRS}
25set(IndicatorsQML_SOURCES
30 menucontentactivator.cpp
34 unitymenumodelcache.cpp
35 unitymenumodelstack.cpp
36 visibleindicatorsmodel.cpp
38add_definitions(-DUNITYINDICATORS_LIBRARY)
40set(IndicatorsQML_RESOURCES
41 resources/indicators.qrc
44qt5_add_resources(IndicatorsQML_RESOURCES_RCC
45 ${IndicatorsQML_RESOURCES}
48add_library(IndicatorsQml SHARED
49 ${IndicatorsQML_RESOURCES_RCC}
50 ${IndicatorsQML_SOURCES}
53target_link_libraries(IndicatorsQml
57 ${LIBUPSTART_LIBRARIES}
60qt5_use_modules(IndicatorsQml Core Qml Quick)
62# export the qmltypes and plugin files
63export_qmlplugin(Unity.Indicators 0.1 Unity/Indicators TARGETS IndicatorsQml)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list