Warning, /graphics/digikam/core/utilities/imageeditor/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com>
0003 # SPDX-FileCopyrightText: 2015      by Veaceslav Munteanu, <veaceslav dot munteanu90 at gmail dot com>
0004 #
0005 # SPDX-License-Identifier: BSD-3-Clause
0006 #
0007 
0008 APPLY_COMMON_POLICIES()
0009 
0010 include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::PrintSupport,INTERFACE_INCLUDE_DIRECTORIES>
0011                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Sql,INTERFACE_INCLUDE_DIRECTORIES>
0012                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0013                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
0014                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0015                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Network,INTERFACE_INCLUDE_DIRECTORIES>
0016 
0017                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0018                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::XmlGui,INTERFACE_INCLUDE_DIRECTORIES>
0019                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::Service,INTERFACE_INCLUDE_DIRECTORIES>
0020                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::Solid,INTERFACE_INCLUDE_DIRECTORIES>
0021                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::WindowSystem,INTERFACE_INCLUDE_DIRECTORIES>
0022 )
0023 
0024 if(KF${QT_VERSION_MAJOR}KIO_FOUND)
0025     include_directories($<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::KIOWidgets,INTERFACE_INCLUDE_DIRECTORIES>)
0026 endif()
0027 
0028 if(Gphoto2_FOUND)
0029     include_directories(${GPHOTO2_INCLUDE_DIRS})
0030 endif()
0031 
0032 # ------------------------------------------------------------------------------------
0033 
0034 set(libeditorwidgets_SRCS
0035     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/imageguidewidget.cpp
0036     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/imagepreviewitem.cpp
0037     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/previewtoolbar.cpp
0038     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/previewlist.cpp
0039     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/imageregionwidget.cpp
0040     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/imageregionitem.cpp
0041     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/rubberitem.cpp
0042     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/canvas.cpp
0043 )
0044 
0045 set(libeditordlg_SRCS
0046     ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/colorcorrectiondlg.cpp
0047     ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/softproofdialog.cpp
0048     ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/versioningpromptusersavedlg.cpp
0049 )
0050 
0051 set(libeditorcore_SRCS
0052     ${CMAKE_CURRENT_SOURCE_DIR}/core/undocache.cpp
0053     ${CMAKE_CURRENT_SOURCE_DIR}/core/undoaction.cpp
0054     ${CMAKE_CURRENT_SOURCE_DIR}/core/undomanager.cpp
0055     ${CMAKE_CURRENT_SOURCE_DIR}/core/editorcore.cpp
0056     ${CMAKE_CURRENT_SOURCE_DIR}/core/iccpostloadingmanager.cpp
0057 )
0058 
0059 set(libeditoriface_SRCS
0060     ${CMAKE_CURRENT_SOURCE_DIR}/editor/editortool.cpp
0061     ${CMAKE_CURRENT_SOURCE_DIR}/editor/editortooliface.cpp
0062     ${CMAKE_CURRENT_SOURCE_DIR}/editor/editorstackview.cpp
0063     ${CMAKE_CURRENT_SOURCE_DIR}/editor/editortoolsettings.cpp
0064     ${CMAKE_CURRENT_SOURCE_DIR}/editor/editorwindow.cpp
0065     ${CMAKE_CURRENT_SOURCE_DIR}/editor/imageiface.cpp
0066 )
0067 
0068 # Used by digikamcore
0069 add_library(core_imageeditor_obj OBJECT ${libeditorcore_SRCS}
0070                                         ${libeditordlg_SRCS}
0071                                         ${libeditoriface_SRCS}
0072                                         ${libeditorwidgets_SRCS}
0073 )
0074 
0075 target_compile_definitions(core_imageeditor_obj
0076                            PRIVATE
0077                            digikamcore_EXPORTS
0078 )
0079 
0080 # ------------------------------------------------------------------------------------
0081 
0082 set(libeditorgui_SRCS
0083     ${CMAKE_CURRENT_SOURCE_DIR}/main/imagewindow.cpp
0084     ${CMAKE_CURRENT_SOURCE_DIR}/main/imagewindow_setup.cpp
0085     ${CMAKE_CURRENT_SOURCE_DIR}/main/imagewindow_config.cpp
0086     ${CMAKE_CURRENT_SOURCE_DIR}/main/imagewindow_import.cpp
0087 )
0088 
0089 # Used by digikamgui
0090 add_library(gui_imageeditorgui_obj OBJECT ${libeditorgui_SRCS})
0091 
0092 target_compile_definitions(gui_imageeditorgui_obj
0093                            PRIVATE
0094                            digikamgui_EXPORTS
0095 )
0096 
0097 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/main/imageeditorui5.rc DESTINATION ${KDE_INSTALL_FULL_KXMLGUIDIR}/digikam)