Changeset View
Changeset View
Standalone View
Standalone View
autotests/libkwineffects/CMakeLists.txt
1 | include(ECMMarkAsTest) | 1 | include(ECMMarkAsTest) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | macro(KWINEFFECTS_UNIT_TESTS) | 3 | macro(KWINEFFECTS_UNIT_TESTS) | ||
4 | foreach(_testname ${ARGN}) | 4 | foreach(_testname ${ARGN}) | ||
5 | add_executable(${_testname} ${_testname}.cpp) | 5 | add_executable(${_testname} ${_testname}.cpp) | ||
6 | add_test(NAME kwineffects-${_testname} COMMAND ${_testname}) | 6 | add_test(NAME kwineffects-${_testname} COMMAND ${_testname}) | ||
7 | target_link_libraries(${_testname} Qt5::Test kwineffects) | 7 | target_link_libraries(${_testname} Qt5::Test kwineffects) | ||
8 | ecm_mark_as_test(${_testname}) | 8 | ecm_mark_as_test(${_testname}) | ||
9 | endforeach() | 9 | endforeach() | ||
10 | endmacro() | 10 | endmacro() | ||
11 | 11 | | |||
12 | kwineffects_unit_tests( | 12 | kwineffects_unit_tests( | ||
13 | windowquadlisttest | 13 | windowquadlisttest | ||
14 | timelinetest | ||||
14 | ) | 15 | ) | ||
15 | 16 | | |||
16 | add_executable(kwinglplatformtest kwinglplatformtest.cpp mock_gl.cpp ../../libkwineffects/kwinglplatform.cpp) | 17 | add_executable(kwinglplatformtest kwinglplatformtest.cpp mock_gl.cpp ../../libkwineffects/kwinglplatform.cpp) | ||
17 | add_test(NAME kwineffects-kwinglplatformtest COMMAND kwinglplatformtest) | 18 | add_test(NAME kwineffects-kwinglplatformtest COMMAND kwinglplatformtest) | ||
18 | target_link_libraries(kwinglplatformtest Qt5::Test Qt5::Gui Qt5::X11Extras KF5::ConfigCore XCB::XCB) | 19 | target_link_libraries(kwinglplatformtest Qt5::Test Qt5::Gui Qt5::X11Extras KF5::ConfigCore XCB::XCB) | ||
19 | ecm_mark_as_test(kwinglplatformtest) | 20 | ecm_mark_as_test(kwinglplatformtest) |