mirror of https://github.com/qt/qtdoc.git
26 lines
690 B
CMake
26 lines
690 B
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
project(documentviewer LANGUAGES CXX)
|
|
|
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
|
set(INSTALL_EXAMPLESDIR "examples")
|
|
endif()
|
|
|
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/demos/documentviewer")
|
|
|
|
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets
|
|
OPTIONAL_COMPONENTS PrintSupport Pdf PdfWidgets Quick3D)
|
|
|
|
qt_standard_project_setup()
|
|
|
|
add_compile_definitions(QT_NO_CAST_FROM_ASCII)
|
|
|
|
if(TARGET Qt6::PrintSupport)
|
|
add_compile_definitions(QT_DOCUMENTVIEWER_PRINTSUPPORT)
|
|
endif()
|
|
|
|
add_subdirectory(app)
|
|
add_subdirectory(plugins)
|