~feng-kylin/unity8/OpenUrlInIndicator

« back to all changes in this revision

Viewing changes to tests/mocks/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(IndicatorsFakeQml)
 
2
 
 
3
find_package(Qt5Core REQUIRED)
 
4
find_package(Qt5Quick REQUIRED)
 
5
 
 
6
include_directories(
 
7
    ${CMAKE_CURRENT_SOURCE_DIR}
 
8
    ${CMAKE_CURRENT_BINARY_DIR}
 
9
    ${CMAKE_SOURCE_DIR}/plugins/Unity/Indicators
 
10
)
 
11
 
 
12
set(IndicatorsFakeQml_SOURCES
 
13
    fakeplugin.cpp
 
14
    ${CMAKE_SOURCE_DIR}/plugins/Unity/Indicators/indicators.h
 
15
)
 
16
 
 
17
set(IndicatorsFakeQml_RESOURCES
 
18
    indicators_fake.qrc
 
19
)
 
20
 
 
21
qt5_add_resources(IndicatorsFakeQml_RESOURCES_RCC
 
22
    ${IndicatorsFakeQml_RESOURCES}
 
23
)
 
24
 
 
25
add_library(IndicatorsFakeQml SHARED
 
26
    ${IndicatorsFakeQml_RESOURCES_RCC}
 
27
    ${IndicatorsFakeQml_SOURCES}
 
28
)
 
29
# Because this is an internal support library, we want
 
30
# to expose all symbols in it. Consider changing this
 
31
# either to a static library or just using the
 
32
# files directly in targets.
 
33
set_target_properties(IndicatorsFakeQml PROPERTIES COMPILE_FLAGS -fvisibility=default)
 
34
 
 
35
target_link_libraries(IndicatorsFakeQml)
 
36
 
 
37
qt5_use_modules(IndicatorsFakeQml Core Qml Quick)
 
38
 
 
39
file(GLOB IndicatorsFake_QMLFILES
 
40
    IndicatorsModel.qml
 
41
    qml/FakeMenuPage.qml
 
42
)
 
43
 
 
44
# copy qmldir file into build directory for shadow builds
 
45
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/qmldir"
 
46
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
 
47
)
 
48
 
 
49
# copy qmldir file into build directory for shadow builds
 
50
file(COPY ${IndicatorsFake_QMLFILES}
 
51
    DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
 
52
)