2014-11-20 15:45:32 +00:00
|
|
|
include(ECMMarkAsTest)
|
|
|
|
|
2015-02-18 08:43:04 +00:00
|
|
|
# find_package(Qt5Core ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENT Private _check_private)
|
|
|
|
include_directories(${Qt5Core_PRIVATE_INCLUDE_DIRS})
|
2014-11-07 08:08:29 +00:00
|
|
|
set(testServer_SRCS
|
|
|
|
waylandservertest.cpp
|
|
|
|
)
|
|
|
|
add_executable(testServer ${testServer_SRCS})
|
|
|
|
target_link_libraries(testServer KF5::WaylandServer)
|
|
|
|
ecm_mark_as_test(testServer)
|
2014-11-10 13:56:17 +00:00
|
|
|
|
|
|
|
find_package(Qt5Widgets ${QT_MIN_VERSION} CONFIG QUIET)
|
2015-01-09 11:08:23 +00:00
|
|
|
find_package(Qt5Concurrent ${QT_MIN_VERSION} CONFIG QUIET)
|
|
|
|
if (Qt5Widgets_FOUND AND Qt5Concurrent_FOUND)
|
2014-11-10 13:56:17 +00:00
|
|
|
set(testRenderingServer_SRCS
|
|
|
|
renderingservertest.cpp
|
|
|
|
)
|
|
|
|
add_executable(testRenderingServer ${testRenderingServer_SRCS})
|
2015-01-09 11:08:23 +00:00
|
|
|
target_link_libraries(testRenderingServer KF5::WaylandServer Qt5::Concurrent Qt5::Widgets)
|
2014-11-10 13:56:17 +00:00
|
|
|
ecm_mark_as_test(testRenderingServer)
|
|
|
|
endif()
|
2014-11-12 12:17:26 +00:00
|
|
|
|
|
|
|
add_executable(copyClient copyclient.cpp)
|
|
|
|
target_link_libraries(copyClient KF5::WaylandClient)
|
|
|
|
ecm_mark_as_test(copyClient)
|
2014-11-12 13:05:46 +00:00
|
|
|
|
2014-11-27 11:45:42 +00:00
|
|
|
if (Qt5Concurrent_FOUND)
|
|
|
|
add_executable(pasteClient pasteclient.cpp)
|
|
|
|
target_link_libraries(pasteClient Qt5::Concurrent KF5::WaylandClient)
|
|
|
|
ecm_mark_as_test(pasteClient)
|
2014-12-12 07:36:47 +00:00
|
|
|
endif()
|
2015-03-24 13:48:53 +00:00
|
|
|
|
|
|
|
add_executable(touchClientTest touchclienttest.cpp)
|
|
|
|
target_link_libraries(touchClientTest KF5::WaylandClient)
|
2015-06-09 01:01:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
add_executable(panelTest paneltest.cpp)
|
|
|
|
target_link_libraries(panelTest KF5::WaylandClient)
|
|
|
|
ecm_mark_as_test(panelTest)
|
2015-06-17 23:52:26 +00:00
|
|
|
|
2015-11-18 08:58:19 +00:00
|
|
|
add_executable(shadowTest shadowtest.cpp)
|
|
|
|
target_link_libraries(shadowTest KF5::WaylandClient)
|
|
|
|
ecm_mark_as_test(shadowTest)
|
|
|
|
|
2015-06-17 23:52:26 +00:00
|
|
|
add_executable(qtwayland-integration-test qtwaylandintegrationtest.cpp)
|
|
|
|
target_link_libraries(qtwayland-integration-test Qt5::Core Qt5::Gui KF5::WaylandClient)
|
|
|
|
ecm_mark_as_test(qtwayland-integration-test)
|
2015-09-01 09:26:33 +00:00
|
|
|
|
|
|
|
if (Qt5Widgets_FOUND)
|
|
|
|
add_executable(dpmsTest dpmstest.cpp)
|
|
|
|
target_link_libraries(dpmsTest KF5::WaylandClient Qt5::Widgets)
|
|
|
|
ecm_mark_as_test(dpmsTest)
|
|
|
|
endif()
|