diff options
Diffstat (limited to 'examples/quick/text/CMakeLists.txt')
-rw-r--r-- | examples/quick/text/CMakeLists.txt | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/examples/quick/text/CMakeLists.txt b/examples/quick/text/CMakeLists.txt index e2fa455b8b..63869e3c88 100644 --- a/examples/quick/text/CMakeLists.txt +++ b/examples/quick/text/CMakeLists.txt @@ -1,40 +1,34 @@ -# Generated from text.pro. - cmake_minimum_required(VERSION 3.16) project(text LANGUAGES CXX) -set(CMAKE_INCLUDE_CURRENT_DIR ON) - set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) if(NOT DEFINED INSTALL_EXAMPLESDIR) - set(INSTALL_EXAMPLESDIR "examples") + set(INSTALL_EXAMPLESDIR "examples") endif() set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/quick/text") -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Quick) -find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick) add_subdirectory("../shared" "shared") qt_add_executable(textexample main.cpp ) + set_target_properties(textexample PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(textexample PUBLIC Qt::Core Qt::Gui Qt::Qml Qt::Quick ) + add_dependencies(textexample text_shared) qt_add_qml_module(textexample @@ -69,4 +63,5 @@ install(TARGETS textexample BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" ) + bundle_shared(textexample) |