include(CMakePrintHelpers) cmake_print_properties(TARGETS $targets$ PROPERTIES $properties$) include(CMakePrintHelpers) cmake_print_variables($variables$) # https://doc.qt.io/qt-6/cmake-get-started.html set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Qt6 REQUIRED COMPONENTS Core) qt_standard_project_setup() qt_add_executable($executable$ main.cpp ) target_link_libraries($executable$ PRIVATE Qt6::Core) # https://doc.qt.io/qt-6/cmake-get-started.html set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Qt6 REQUIRED COMPONENTS Widgets) qt_standard_project_setup() qt_add_executable($executable$ mainwindow.ui mainwindow.cpp main.cpp ) target_link_libraries($executable$ PRIVATE Qt6::Widgets) set_target_properties($executable$ PROPERTIES WIN32_EXECUTABLE ON MACOSX_BUNDLE ON )