~feng-kylin/unity8/OpenUrlInIndicator

« back to all changes in this revision

Viewing changes to tests/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
include_directories(
 
2
    ${CMAKE_CURRENT_BINARY_DIR}
 
3
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../../plugins/Unity/Indicators
 
4
    )
 
5
 
 
6
macro(run_tests)
 
7
    set(_test_list "")
 
8
    foreach(_test ${ARGN})
 
9
        set(testCommand ${CMAKE_CURRENT_BINARY_DIR}/${_test}Exec
 
10
              -o ${CMAKE_BINARY_DIR}/${_test}.xml,xunitxml
 
11
              -o -,txt)
 
12
        add_test(NAME ${_test} COMMAND ${testCommand})
 
13
        add_custom_target(${_test} ${testCommand})
 
14
        add_executable(${_test}Exec ${_test}.cpp
 
15
            )
 
16
        qt5_use_modules(${_test}Exec Test Core Qml)
 
17
        target_link_libraries(${_test}Exec
 
18
            IndicatorsQml
 
19
            )
 
20
        set(_test_list "${_test_list};${_test}")
 
21
    endforeach()
 
22
endmacro(run_tests)
 
23
 
 
24
run_tests(
 
25
    indicatorsmanagertest
 
26
    indicatorsmodeltest
 
27
    )