2014-01-30 14:28:12 +00:00
|
|
|
if (XCB_ICCCM_FOUND)
|
|
|
|
set(normalhintsbasesizetest_SRCS normalhintsbasesizetest.cpp)
|
|
|
|
add_executable(normalhintsbasesizetest ${normalhintsbasesizetest_SRCS})
|
2014-03-18 16:53:22 +00:00
|
|
|
target_link_libraries(normalhintsbasesizetest XCB::XCB XCB::ICCCM KF5::WindowSystem)
|
2014-01-30 14:28:12 +00:00
|
|
|
endif()
|
2014-02-20 11:39:23 +00:00
|
|
|
|
|
|
|
# next target
|
|
|
|
set(screenedgeshowtest_SRCS screenedgeshowtest.cpp)
|
|
|
|
add_executable(screenedgeshowtest ${screenedgeshowtest_SRCS})
|
2014-03-18 13:38:00 +00:00
|
|
|
target_link_libraries(screenedgeshowtest Qt5::Widgets Qt5::X11Extras KF5::WindowSystem ${XCB_XCB_LIBRARY})
|
2014-08-21 10:57:50 +00:00
|
|
|
|
|
|
|
if (Wayland_Client_FOUND AND XKB_FOUND)
|
|
|
|
add_definitions(-DSOURCE_DIR="${KWIN_SOURCE_DIR}")
|
2014-08-27 07:19:36 +00:00
|
|
|
include_directories(${CMAKE_BINARY_DIR}/wayland_protocols/)
|
|
|
|
set_source_files_properties(${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c GENERATED)
|
2014-08-21 10:57:50 +00:00
|
|
|
set(waylandclienttest_SRCS
|
|
|
|
waylandclienttest.cpp
|
|
|
|
../wayland_client/buffer.cpp
|
|
|
|
../wayland_client/compositor.cpp
|
|
|
|
../wayland_client/connection_thread.cpp
|
|
|
|
../wayland_client/keyboard.cpp
|
|
|
|
../wayland_client/output.cpp
|
|
|
|
../wayland_client/pointer.cpp
|
|
|
|
../wayland_client/registry.cpp
|
|
|
|
../wayland_client/seat.cpp
|
|
|
|
../wayland_client/shell.cpp
|
|
|
|
../wayland_client/shm_pool.cpp
|
|
|
|
../wayland_client/surface.cpp
|
|
|
|
${CMAKE_BINARY_DIR}/wayland_protocols/wayland-client-fullscreen-shell.c
|
|
|
|
)
|
|
|
|
add_executable(waylandclienttest ${waylandclienttest_SRCS})
|
|
|
|
target_link_libraries(waylandclienttest Qt5::Core Qt5::Gui Wayland::Client)
|
2014-08-28 21:11:30 +00:00
|
|
|
add_dependencies(waylandclienttest wayland-client-fullscreen-shell)
|
2014-08-21 10:57:50 +00:00
|
|
|
endif()
|