cmake_minimum_required(VERSION 3.14) project(ShortCodeTesting LANGUAGES CXX) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Qt6 REQUIRED COMPONENTS Core Widgets) add_executable(ShortCodeTesting main.cpp ) target_link_libraries(ShortCodeTesting PRIVATE Qt6::Core Qt6::Widgets)