Warning, /libraries/kquickimageeditor/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2020 Carl Schwan <carl@carlschwan.eu>
0002 #
0003 # SPDX-License-Identifier: BSD-2-Clause
0004
0005 ecm_add_qml_module(kquickimageeditorplugin URI "org.kde.kquickimageeditor" VERSION 1.0)
0006
0007 target_sources(kquickimageeditorplugin PRIVATE
0008 code/commands/undocommand.cpp
0009 code/commands/undocommand.h
0010 code/commands/cropcommand.cpp
0011 code/commands/cropcommand.h
0012 code/commands/resizecommand.cpp
0013 code/commands/resizecommand.h
0014 code/commands/mirrorcommand.cpp
0015 code/commands/mirrorcommand.h
0016 code/commands/rotatecommand.cpp
0017 code/commands/rotatecommand.h
0018 code/kquickimageeditor_plugin.cpp
0019 code/kquickimageeditor_plugin.h
0020 code/resizehandle.cpp
0021 code/resizehandle.h
0022 code/resizerectangle.cpp
0023 code/resizerectangle.h
0024 code/imageitem.cpp
0025 code/imageitem.h
0026 code/imagedocument.cpp
0027 code/imagedocument.h
0028 ${kquickimageeditor_QM_LOADER}
0029 )
0030
0031 ecm_target_qml_sources(kquickimageeditorplugin SOURCES
0032 controls/BasicResizeHandle.qml
0033 controls/SelectionTool.qml
0034 controls/qt${QT_MAJOR_VERSION}/SelectionHandle.qml
0035 controls/SelectionBackground.qml
0036 controls/CropBackground.qml
0037 controls/RectangleCutout.qml
0038 )
0039
0040 target_link_libraries(kquickimageeditorplugin
0041 PRIVATE
0042 Qt${QT_MAJOR_VERSION}::Core
0043 Qt${QT_MAJOR_VERSION}::Quick
0044 Qt${QT_MAJOR_VERSION}::Qml
0045 )
0046
0047 ecm_finalize_qml_module(kquickimageeditorplugin DESTINATION ${KDE_INSTALL_QMLDIR})
0048
0049 include(ECMGeneratePriFile)
0050 ecm_generate_pri_file(BASE_NAME KQuickImageEditor LIB_NAME KQuickImageEditor DEPS "core qml quick svg" FILENAME_VAR PRI_FILENAME )
0051 install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})