diff options
Diffstat (limited to 'examples/pdf/pdfviewer')
-rw-r--r-- | examples/pdf/pdfviewer/CMakeLists.txt | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/examples/pdf/pdfviewer/CMakeLists.txt b/examples/pdf/pdfviewer/CMakeLists.txt index 5a3821399..179734dc4 100644 --- a/examples/pdf/pdfviewer/CMakeLists.txt +++ b/examples/pdf/pdfviewer/CMakeLists.txt @@ -1,28 +1,25 @@ cmake_minimum_required(VERSION 3.16) project(pdfviewer 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}/pdf/pdfviewer") -find_package(Qt6 COMPONENTS Gui) -find_package(Qt6 COMPONENTS Qml) +find_package(Qt6 REQUIRED COMPONENTS Gui Qml) qt_add_executable(pdfviewerquick main.cpp ) + set_target_properties(pdfviewerquick PROPERTIES WIN32_EXECUTABLE TRUE MACOSX_BUNDLE TRUE ) + target_link_libraries(pdfviewerquick PUBLIC Qt::Gui Qt::Qml |