1# export_qmlplugin macro
4project(IndicatorsNetworkQml)
6pkg_check_modules(GLIB glib-2.0>=2.32)
7pkg_check_modules(LIBNM_GLIB libnm-glib>=0.9.6)
8pkg_check_modules(LIBNM_UTIL libnm-util>=0.9.6)
10if(LIBNM_GLIB_FOUND AND LIBNM_UTIL_FOUND AND GLIB_FOUND)
11 set(INDICATORS_NETWORK_SRC
17 add_library(IndicatorsNetworkQml MODULE
18 ${INDICATORS_NETWORK_SRC}
21 qt5_use_modules(IndicatorsNetworkQml Core Qml Widgets)
23 set_target_properties(IndicatorsNetworkQml PROPERTIES COMPILE_FLAGS -fPIC)
26 ${CMAKE_CURRENT_SOURCE_DIR}
28 ${LIBNM_GLIB_INCLUDE_DIRS}
29 ${LIBNM_UTIL_INCLUDE_DIRS}
32 target_link_libraries(IndicatorsNetworkQml
34 ${LIBNM_GLIB_LIBRARIES}
35 ${LIBNM_UTIL_LIBRARIES}
38 # export the qmltypes and plugin files
39 export_qmlplugin(Unity.Indicators.Network 0.1 Unity/Indicators/Network TARGETS IndicatorsNetworkQml)
42 message(WARNING "Missing glib or libnm dependency for the network plugin, not building")
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