on 5c74ee3 help sign in
unity8/plugins/Unity/Indicators/CMakeLists.txt
63 lines 1.4 kB history raw
1# export_qmlplugin macro
2include(Plugins)
4project(IndicatorsQml)
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)
14add_subdirectory(qml)
16include_directories(
17 ${CMAKE_CURRENT_SOURCE_DIR}
18 ${CMAKE_CURRENT_BINARY_DIR}
19 ${GLIB_INCLUDE_DIRS}
20 ${GIO_INCLUDE_DIRS}
21 ${QMENUMODEL_INCLUDE_DIRS}
22 ${LIBUPSTART_INCLUDE_DIRS}
25set(IndicatorsQML_SOURCES
26 indicator.cpp
27 indicators.h
28 indicatorsmanager.cpp
29 indicatorsmodel.cpp
30 menucontentactivator.cpp
31 modelprinter.cpp
32 plugin.cpp
33 rootactionstate.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
54 ${GLIB_LIBRARIES}
55 ${GIO_LIBRARIES}
56 ${QMENUMODEL_LDFLAGS}
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)