diff options
Diffstat (limited to 'examples/widgets/tools/styleplugin/stylewindow')
-rw-r--r-- | examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt index 264913f967..168c41fb60 100644 --- a/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt +++ b/examples/widgets/tools/styleplugin/stylewindow/CMakeLists.txt @@ -1,24 +1,3 @@ -# Generated from stylewindow.pro. - -cmake_minimum_required(VERSION 3.16) -project(styleplugin 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") -endif() - -set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/tools/styleplugin") - -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Widgets) - qt_add_executable(styleplugin main.cpp stylewindow.cpp stylewindow.h @@ -27,14 +6,18 @@ set_target_properties(styleplugin PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) -target_link_libraries(styleplugin PUBLIC +target_link_libraries(styleplugin PRIVATE Qt::Core Qt::Gui Qt::Widgets ) +if(NOT QT6_IS_SHARED_LIBS_BUILD) + target_link_libraries(styleplugin PRIVATE + simplestyleplugin + ) +endif() install(TARGETS styleplugin RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" - LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" ) |