on 2139c25 help sign in
unity8/plugins/Unity/Indicators/CMakeLists.txt
55 lines 1.3 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)
15add_subdirectory(Network)
17include_directories(
18 ${CMAKE_CURRENT_SOURCE_DIR}
19 ${CMAKE_CURRENT_BINARY_DIR}
20 ${GLIB_INCLUDE_DIRS}
21 ${GIO_INCLUDE_DIRS}
22 ${QMENUMODEL_INCLUDE_DIRS}
23 ${LIBUPSTART_INCLUDE_DIRS}
26set(IndicatorsQML_SOURCES
27 indicator.cpp
28 indicators.h
29 indicatorsmanager.cpp
30 indicatorsmodel.cpp
31 menucontentactivator.cpp
32 modelprinter.cpp
33 plugin.cpp
34 rootactionstate.cpp
35 unitymenumodelcache.cpp
36 unitymenumodelstack.cpp
38add_definitions(-DUNITYINDICATORS_LIBRARY)
41add_library(IndicatorsQml SHARED
42 ${IndicatorsQML_SOURCES}
45target_link_libraries(IndicatorsQml
46 ${GLIB_LIBRARIES}
47 ${GIO_LIBRARIES}
48 ${QMENUMODEL_LDFLAGS}
49 ${LIBUPSTART_LIBRARIES}
52qt5_use_modules(IndicatorsQml Core Qml Quick)
54# export the qmltypes and plugin files
55export_qmlplugin(Unity.Indicators 0.1 Unity/Indicators TARGETS IndicatorsQml)