~ubuntu-branches/ubuntu/wily/libkscreen/wily-proposed

« back to all changes in this revision

Viewing changes to autotests/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-10-01 15:47:21 UTC
  • Revision ID: package-import@ubuntu.com-20141001154721-96ng88bgtxpj8sjv
Tags: upstream-5.1.0.1
ImportĀ upstreamĀ versionĀ 5.1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
add_definitions(-DTEST_DATA="${CMAKE_CURRENT_SOURCE_DIR}/configs/")
 
2
 
 
3
macro(KSCREEN_TESTS)
 
4
    foreach(_testname ${ARGN})
 
5
        add_executable(${_testname} ${_testname}.cpp)
 
6
        target_link_libraries(${_testname} Qt5::Core Qt5::Gui Qt5::Test KF5::Screen)
 
7
        add_test(kscreen-${_testname} ${_testname})
 
8
        ecm_mark_as_test(${_testname})
 
9
    endforeach(_testname)
 
10
endmacro(KSCREEN_TESTS)
 
11
 
 
12
KSCREEN_TESTS(testscreenconfig )
 
13
KSCREEN_TESTS(testqscreenbackend )
 
14
 
 
15
if (ENABLE_XRANDR_TESTS)
 
16
    KSCREEN_TESTS(testxrandr )
 
17
endif()