cmake_minimum_required(VERSION 3.21) project(php_qml_todo_example LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOMOC ON) find_package(Qt6 6.5 REQUIRED COMPONENTS Core Gui Quick QuickControls2 Network Qml) qt_standard_project_setup(REQUIRES 6.5) # Pull in the framework's QML module (PhpQml.Bridge) — the example uses # the same module the skeleton does, just one level deeper in the tree. add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../../framework/qml ${CMAKE_BINARY_DIR}/php_qml_bridge) qt_add_executable(todo main.cpp) qt_add_qml_module(todo URI Todo VERSION 1.0 QML_FILES Main.qml TodoList.qml TodoWindow.qml ) target_link_libraries(todo PRIVATE Qt6::Core Qt6::Gui Qt6::Quick Qt6::QuickControls2 Qt6::Network Qt6::Qml php_qml_bridge php_qml_bridgeplugin )