~macslow/unity8/fix-1475678

« back to all changes in this revision

Viewing changes to tests/plugins/Utils/CMakeLists.txt

  • Committer: Michał Sawicz
  • Date: 2013-06-05 22:03:08 UTC
  • Revision ID: michal.sawicz@canonical.com-20130605220308-yny8fv3futtr04fg
Inital unity8 commit.

Previous history can be found at https://code.launchpad.net/~unity-team/unity/phablet

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
    ${UtilsQmlPlugin_SOURCE_DIR}
 
3
    ${CMAKE_CURRENT_SOURCE_DIR}/../../../plugins/Utils
 
4
    ${CMAKE_CURRENT_BINARY_DIR}
 
5
    )
 
6
 
 
7
macro(run_tests)
 
8
    set(_test_list "")
 
9
    foreach(_test ${ARGN})
 
10
        set(testCommand ${CMAKE_CURRENT_BINARY_DIR}/${_test}Exec
 
11
              -o ${CMAKE_BINARY_DIR}/${_test}.xml,xunitxml
 
12
              -o -,txt)
 
13
        add_test(NAME ${_test} COMMAND ${testCommand})
 
14
        add_custom_target(${_test} ${testCommand})
 
15
        add_executable(${_test}Exec ${_test}.cpp modeltest.cpp)
 
16
        qt5_use_modules(${_test}Exec Test Core Qml)
 
17
        target_link_libraries(${_test}Exec
 
18
            Utils-qml
 
19
            )
 
20
        set(_test_list "${_test_list};${_test}")
 
21
    endforeach()
 
22
endmacro(run_tests)
 
23
 
 
24
run_tests(
 
25
    qlimitproxymodeltest
 
26
    qsortfilterproxymodeltest
 
27
    )