making clangd happy and making script to compile/build with run.sh
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
# Copyright (C) 2023 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets PdfWidgets
|
||||
OPTIONAL_COMPONENTS PrintSupport)
|
||||
|
||||
qt_add_plugin(pdfviewer
|
||||
CLASS_NAME PdfViewer
|
||||
pdfviewer.cpp pdfviewer.h
|
||||
zoomselector.cpp zoomselector.h
|
||||
hoverwatcher.cpp hoverwatcher.h
|
||||
)
|
||||
|
||||
set_target_properties(pdfviewer PROPERTIES
|
||||
LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/app"
|
||||
)
|
||||
|
||||
target_include_directories(pdfviewer PRIVATE
|
||||
../../app
|
||||
..
|
||||
)
|
||||
|
||||
target_link_libraries(pdfviewer PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
Qt6::PdfWidgets
|
||||
abstractviewer
|
||||
)
|
||||
|
||||
if(TARGET Qt6::PrintSupport)
|
||||
target_link_libraries(pdfviewer PRIVATE Qt6::PrintSupport)
|
||||
endif()
|
||||
|
||||
install(TARGETS pdfviewer
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}/plugins"
|
||||
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}/plugins"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user