summaryrefslogtreecommitdiff
path: root/doc/src/cmake/snippets
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/cmake/snippets')
-rw-r--r--doc/src/cmake/snippets/cmake/helloworld_qtcore.cmake2
-rw-r--r--doc/src/cmake/snippets/cmake/helloworld_qtwidgets.cmake2
-rw-r--r--doc/src/cmake/snippets/cmake/helloworld_src_businesslogic.cmake2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/cmake/snippets/cmake/helloworld_qtcore.cmake b/doc/src/cmake/snippets/cmake/helloworld_qtcore.cmake
index ad16f33d..20412929 100644
--- a/doc/src/cmake/snippets/cmake/helloworld_qtcore.cmake
+++ b/doc/src/cmake/snippets/cmake/helloworld_qtcore.cmake
@@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Core)
qt_standard_project_setup()
-add_executable(helloworld
+qt_add_executable(helloworld
main.cpp
)
diff --git a/doc/src/cmake/snippets/cmake/helloworld_qtwidgets.cmake b/doc/src/cmake/snippets/cmake/helloworld_qtwidgets.cmake
index fec5f682..562ff3b2 100644
--- a/doc/src/cmake/snippets/cmake/helloworld_qtwidgets.cmake
+++ b/doc/src/cmake/snippets/cmake/helloworld_qtwidgets.cmake
@@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Qt6 REQUIRED COMPONENTS Widgets)
qt_standard_project_setup()
-add_executable(helloworld
+qt_add_executable(helloworld
mainwindow.ui
mainwindow.cpp
main.cpp
diff --git a/doc/src/cmake/snippets/cmake/helloworld_src_businesslogic.cmake b/doc/src/cmake/snippets/cmake/helloworld_src_businesslogic.cmake
index cd7384ac..f88ab7e5 100644
--- a/doc/src/cmake/snippets/cmake/helloworld_src_businesslogic.cmake
+++ b/doc/src/cmake/snippets/cmake/helloworld_src_businesslogic.cmake
@@ -1,7 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
-add_library(businesslogic STATIC
+qt_add_library(businesslogic STATIC
businesslogic.cpp
)
target_link_libraries(businesslogic PRIVATE Qt6::Core)