diff options
Diffstat (limited to 'examples/quick/text/CMakeLists.txt')
-rw-r--r-- | examples/quick/text/CMakeLists.txt | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/quick/text/CMakeLists.txt b/examples/quick/text/CMakeLists.txt index a338d31260..4050357c70 100644 --- a/examples/quick/text/CMakeLists.txt +++ b/examples/quick/text/CMakeLists.txt @@ -4,8 +4,6 @@ cmake_minimum_required(VERSION 3.16) project(text LANGUAGES CXX) -set(CMAKE_AUTOMOC ON) - if(NOT DEFINED INSTALL_EXAMPLESDIR) set(INSTALL_EXAMPLESDIR "examples") endif() @@ -14,18 +12,17 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quick/text") find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick) +qt_standard_project_setup() + add_subdirectory("../shared" "shared") qt_add_executable(textexample + WIN32 + MACOSX_BUNDLE main.cpp ) -set_target_properties(textexample PROPERTIES - WIN32_EXECUTABLE TRUE - MACOSX_BUNDLE TRUE -) - -target_link_libraries(textexample PUBLIC +target_link_libraries(textexample PRIVATE Qt::Core Qt::Gui Qt::Qml |