diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-09-18 17:14:44 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-11-26 11:29:29 +0000 |
commit | 12058b161e5f0d6f76523dc831acc8bdbc027fec (patch) | |
tree | ee6e6bf1c2730671544ca799b7ad414abcf17646 /examples/wayland/pure-qml | |
parent | bad0b76e5a7ed73b685848a8fd6a3555b754a81a (diff) |
Initial CMake port
The client, compositor, tests, plugins and examples now build.
There are still a few minor issues:
- The protocol source generation is a bit hacky.
- The tests for checking if building CMake projects don't work anymore as they
have Qt 5 specific code. They have just been commented out for now.
Fixes: QTBUG-78177
Change-Id: Ie17cb05f0cdbd5b098970ce765adaeccf61a8fde
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'examples/wayland/pure-qml')
-rw-r--r-- | examples/wayland/pure-qml/CMakeLists.txt | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/examples/wayland/pure-qml/CMakeLists.txt b/examples/wayland/pure-qml/CMakeLists.txt new file mode 100644 index 000000000..af504bfbe --- /dev/null +++ b/examples/wayland/pure-qml/CMakeLists.txt @@ -0,0 +1,48 @@ +# Generated from pure-qml.pro. + +cmake_minimum_required(VERSION 3.14) +project(pure-qml LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/wayland/pure-qml") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Qml) + +add_qt_gui_executable(pure-qml + main.cpp +) +target_link_libraries(pure-qml PUBLIC + Qt::Core + Qt::Gui + Qt::Qml +) + + +# Resources: +set(pure-qml_resource_files + "images/background.jpg" + "qml/Chrome.qml" + "qml/Keyboard.qml" + "qml/Screen.qml" + "qml/main.qml" +) + +qt6_add_resources(pure-qml "pure-qml" + PREFIX + "/" + FILES + ${pure-qml_resource_files} +) + +install(TARGETS pure-qml + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |