diff options
Diffstat (limited to 'examples/wayland/qtshell/CMakeLists.txt')
-rw-r--r-- | examples/wayland/qtshell/CMakeLists.txt | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/wayland/qtshell/CMakeLists.txt b/examples/wayland/qtshell/CMakeLists.txt index c6d3b3793..763dc2dc0 100644 --- a/examples/wayland/qtshell/CMakeLists.txt +++ b/examples/wayland/qtshell/CMakeLists.txt @@ -1,30 +1,25 @@ cmake_minimum_required(VERSION 3.14) project(qtshell LANGUAGES CXX) -set(CMAKE_INCLUDE_CURRENT_DIR ON) - set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) -set(CMAKE_AUTOUIC ON) -find_package(Qt6 COMPONENTS Core) -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml) qt_add_executable(qtshell main.cpp ) + set_target_properties(qtshell PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(qtshell PUBLIC Qt::Core Qt::Gui Qt::Qml ) - # Resources: set(qtshell_resource_files "images/background.jpg" |