9ca7429dff
Make sure configure fails early if a component cannot be found. Task-number: QTBUG-98867 Pick-to: 6.2 6.3 Change-Id: I4baa35a84342df58ce8932601fb602be92ed5ab9 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
19 lines
337 B
CMake
19 lines
337 B
CMake
# special case skip regeneration
|
|
cmake_minimum_required(VERSION 3.16)
|
|
project(screengadget LANGUAGES CXX)
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
|
|
|
|
qt_add_executable(screengadget
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(screengadget PUBLIC
|
|
Qt::Core
|
|
Qt::Gui
|
|
Qt::GuiPrivate
|
|
Qt::Widgets
|
|
)
|
|
|