Changeset View
Changeset View
Standalone View
Standalone View
tests/CMakeLists.txt
1 | include(ECMMarkAsTest) | 1 | include(ECMMarkAsTest) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | # find_package(Qt5Core ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENT Private _check_private) | 3 | # find_package(Qt5Core ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENT Private _check_private) | ||
4 | include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS}) | 4 | include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS}) | ||
5 | set(testServer_SRCS | 5 | set(testServer_SRCS | ||
6 | waylandservertest.cpp | 6 | waylandservertest.cpp | ||
7 | ) | 7 | ) | ||
8 | add_executable(testServer ${testServer_SRCS}) | 8 | add_executable(testServer ${testServer_SRCS}) | ||
9 | target_link_libraries(testServer KF5::WaylandServer) | 9 | target_link_libraries(testServer KF5::WaylandServer) | ||
10 | ecm_mark_as_test(testServer) | 10 | ecm_mark_as_test(testServer) | ||
11 | 11 | | |||
12 | find_package(Qt5Widgets ${QT_MIN_VERSION} CONFIG QUIET) | 12 | find_package(Qt5Widgets ${QT_MIN_VERSION} CONFIG QUIET) | ||
13 | find_package(Qt5Concurrent ${QT_MIN_VERSION} CONFIG QUIET) | 13 | if (Qt5Widgets_FOUND) | ||
14 | if (Qt5Widgets_FOUND AND Qt5Concurrent_FOUND) | | |||
15 | set(testRenderingServer_SRCS | 14 | set(testRenderingServer_SRCS | ||
16 | renderingservertest.cpp | 15 | renderingservertest.cpp | ||
17 | ) | 16 | ) | ||
18 | add_executable(testRenderingServer ${testRenderingServer_SRCS}) | 17 | add_executable(testRenderingServer ${testRenderingServer_SRCS}) | ||
19 | target_link_libraries(testRenderingServer KF5::WaylandServer Qt5::Concurrent Qt5::Widgets) | 18 | target_link_libraries(testRenderingServer KF5::WaylandServer Qt5::Concurrent Qt5::Widgets) | ||
20 | ecm_mark_as_test(testRenderingServer) | 19 | ecm_mark_as_test(testRenderingServer) | ||
21 | endif() | 20 | endif() | ||
22 | 21 | | |||
23 | add_executable(copyClient copyclient.cpp) | 22 | add_executable(copyClient copyclient.cpp) | ||
24 | target_link_libraries(copyClient KF5::WaylandClient) | 23 | target_link_libraries(copyClient KF5::WaylandClient) | ||
25 | ecm_mark_as_test(copyClient) | 24 | ecm_mark_as_test(copyClient) | ||
26 | 25 | | |||
27 | if (Qt5Concurrent_FOUND) | | |||
28 | add_executable(pasteClient pasteclient.cpp) | 26 | add_executable(pasteClient pasteclient.cpp) | ||
29 | target_link_libraries(pasteClient Qt5::Concurrent KF5::WaylandClient) | 27 | target_link_libraries(pasteClient Qt5::Concurrent KF5::WaylandClient) | ||
30 | ecm_mark_as_test(pasteClient) | 28 | ecm_mark_as_test(pasteClient) | ||
31 | endif() | | |||
32 | 29 | | |||
33 | if (HAVE_LINUX_INPUT_H) | 30 | if (HAVE_LINUX_INPUT_H) | ||
34 | add_executable(touchClientTest touchclienttest.cpp) | 31 | add_executable(touchClientTest touchclienttest.cpp) | ||
35 | target_link_libraries(touchClientTest KF5::WaylandClient) | 32 | target_link_libraries(touchClientTest KF5::WaylandClient) | ||
36 | 33 | | |||
37 | 34 | | |||
38 | add_executable(panelTest paneltest.cpp) | 35 | add_executable(panelTest paneltest.cpp) | ||
39 | target_link_libraries(panelTest KF5::WaylandClient) | 36 | target_link_libraries(panelTest KF5::WaylandClient) | ||
Show All 25 Lines |