CMake generator: Use qt_add_executable instead of add_executable

Task-number: QDS-5267
Change-Id: I83d82089f1f10ec0a30e7f2c2ed776c31fdcd8b5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Tapani Mattila
2022-01-10 13:10:25 +02:00
parent 85dab69262
commit 637d1c167b

View File

@@ -6,7 +6,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(Qt6 COMPONENTS Gui Qml Quick)
add_executable(%1 src/main.cpp)
qt_add_executable(%1 src/main.cpp)
qt_add_resources(%1 "configuration"
PREFIX "/"