~azzar1/unity8/record-test-failure

« back to all changes in this revision

Viewing changes to plugins/Unity/Indicators/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Nick Dedekind, Launchpad Translations on behalf of unity-team
  • Date: 2013-07-11 19:50:27 UTC
  • mfrom: (2.5.114 indicators-client)
  • Revision ID: tarmac-20130711195027-yheu3w2oc42c1h7s
Moved indicators-client code into unity8. Fixes: https://bugs.launchpad.net/bugs/1191132, https://bugs.launchpad.net/bugs/1191822.

Approved by PS Jenkins bot, Michał Sawicz, Nicolas d'Offay.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(IndicatorsQml)
 
2
 
 
3
pkg_check_modules(QMENUMODEL REQUIRED qmenumodel)
 
4
find_package(Qt5Core REQUIRED)
 
5
find_package(Qt5Quick REQUIRED)
 
6
 
 
7
add_subdirectory(qml)
 
8
add_subdirectory(Messaging)
 
9
add_subdirectory(Network)
 
10
 
 
11
include_directories(
 
12
    ${CMAKE_CURRENT_SOURCE_DIR}
 
13
    ${CMAKE_CURRENT_BINARY_DIR}
 
14
    ${QMENUMODEL_INCLUDE_DIRS}
 
15
)
 
16
 
 
17
set(IndicatorsQML_SOURCES
 
18
    flatmenuproxymodel.cpp
 
19
    indicator.cpp
 
20
    indicators.h
 
21
    indicatorsmanager.cpp
 
22
    indicatorsmodel.cpp
 
23
    plugin.cpp
 
24
)
 
25
 
 
26
set(IndicatorsQML_RESOURCES
 
27
    resources/indicators.qrc
 
28
)
 
29
 
 
30
qt5_add_resources(IndicatorsQML_RESOURCES_RCC
 
31
    ${IndicatorsQML_RESOURCES}
 
32
)
 
33
 
 
34
add_library(IndicatorsQml SHARED
 
35
    ${IndicatorsQML_RESOURCES_RCC}
 
36
    ${IndicatorsQML_SOURCES}
 
37
)
 
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)
 
43
 
 
44
target_link_libraries(IndicatorsQml
 
45
    ${QMENUMODEL_LDFLAGS}
 
46
)
 
47
 
 
48
qt5_use_modules(IndicatorsQml Core Qml Quick)
 
49
 
 
50
install(TARGETS IndicatorsQml
 
51
    DESTINATION ${SHELL_PRIVATE_LIBDIR}/qml/Unity/Indicators
 
52
    )