treeland/examples/test_multitaskview/CMakeLists.txt

36 lines
774 B
CMake

find_package(Qt6 REQUIRED COMPONENTS WaylandClient Quick)
find_package(Qt6 COMPONENTS WaylandClientPrivate QUIET)
find_package(TreelandProtocols REQUIRED)
set(BIN_NAME test-multitaskview)
qt_standard_project_setup(REQUIRES 6.5)
qt_add_executable(${BIN_NAME}
main.cpp
)
qt_add_qml_module(${BIN_NAME}
URI test.multitaskview
VERSION 1.0
QML_FILES
Main.qml
SOURCES
ddeshell.h
ddeshell.cpp
)
qt_generate_wayland_protocol_client_sources(${BIN_NAME}
FILES
${TREELAND_PROTOCOLS_DATA_DIR}/treeland-dde-shell-v1.xml
)
target_link_libraries(${BIN_NAME}
PRIVATE
Qt6::Quick
Qt6::WaylandClient
Qt6::WaylandClientPrivate
)
install(TARGETS ${BIN_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")