3
pkg_check_modules(QMENUMODEL REQUIRED qmenumodel)
4
find_package(Qt5Core REQUIRED)
5
find_package(Qt5Quick REQUIRED)
8
add_subdirectory(Messaging)
9
add_subdirectory(Network)
12
${CMAKE_CURRENT_SOURCE_DIR}
13
${CMAKE_CURRENT_BINARY_DIR}
14
${QMENUMODEL_INCLUDE_DIRS}
17
set(IndicatorsQML_SOURCES
18
flatmenuproxymodel.cpp
26
set(IndicatorsQML_RESOURCES
27
resources/indicators.qrc
30
qt5_add_resources(IndicatorsQML_RESOURCES_RCC
31
${IndicatorsQML_RESOURCES}
34
add_library(IndicatorsQml SHARED
35
${IndicatorsQML_RESOURCES_RCC}
36
${IndicatorsQML_SOURCES}
38
# Because this is an internal support library, we want
39
# to expose all symbols in it. Consider changing this
40
# either to a static library or just using the
41
# files directly in targets.
42
set_target_properties(IndicatorsQml PROPERTIES COMPILE_FLAGS -fvisibility=default)
44
target_link_libraries(IndicatorsQml
48
qt5_use_modules(IndicatorsQml Core Qml Quick)
50
install(TARGETS IndicatorsQml
51
DESTINATION ${SHELL_PRIVATE_LIBDIR}/qml/Unity/Indicators