Warning, /graphics/digikam/core/utilities/import/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}::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0011                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Sql,INTERFACE_INCLUDE_DIRECTORIES>
0012                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
0013                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0014 
0015                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0016                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::XmlGui,INTERFACE_INCLUDE_DIRECTORIES>
0017                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::Solid,INTERFACE_INCLUDE_DIRECTORIES>
0018                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
0019                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::Service,INTERFACE_INCLUDE_DIRECTORIES>
0020 )
0021 
0022 if(KF${QT_VERSION_MAJOR}KIO_FOUND)
0023     include_directories($<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::KIOWidgets,INTERFACE_INCLUDE_DIRECTORIES>)
0024 endif()
0025 
0026 if(Gphoto2_FOUND)
0027     include_directories(${GPHOTO2_INCLUDE_DIRS})
0028 endif()
0029 
0030 set(libimportuibackend_SRCS
0031     ${CMAKE_CURRENT_SOURCE_DIR}/backend/cameracontroller.cpp
0032     ${CMAKE_CURRENT_SOURCE_DIR}/backend/camerathumbsctrl.cpp
0033 #   ${CMAKE_CURRENT_SOURCE_DIR}/backend/camerahistoryupdater.cpp
0034     ${CMAKE_CURRENT_SOURCE_DIR}/backend/dkcamera.cpp
0035     ${CMAKE_CURRENT_SOURCE_DIR}/backend/gpcamera.cpp
0036     ${CMAKE_CURRENT_SOURCE_DIR}/backend/camiteminfo.cpp
0037     ${CMAKE_CURRENT_SOURCE_DIR}/backend/umscamera.cpp
0038 
0039     ${CMAKE_CURRENT_SOURCE_DIR}/main/importsettings.cpp
0040 )
0041 
0042 set(libimportui_SRCS
0043     ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/camerafolderdialog.cpp
0044     ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/camerainfodialog.cpp
0045     ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/capturedlg.cpp
0046     ${CMAKE_CURRENT_SOURCE_DIR}/dialogs/cameramessagebox.cpp
0047 
0048     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/capturewidget.cpp
0049     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/freespacewidget.cpp
0050     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/renamecustomizer.cpp
0051     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/albumcustomizer.cpp
0052     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/advancedsettings.cpp
0053     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/scriptingsettings.cpp
0054     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/importfilter.cpp
0055     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/importfiltercombobox.cpp
0056     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/importcontextmenu.cpp
0057     ${CMAKE_CURRENT_SOURCE_DIR}/widgets/dngconvertsettings.cpp
0058 
0059     ${CMAKE_CURRENT_SOURCE_DIR}/models/importimagemodel.cpp
0060     ${CMAKE_CURRENT_SOURCE_DIR}/models/importthumbnailmodel.cpp
0061     ${CMAKE_CURRENT_SOURCE_DIR}/models/importfiltermodel.cpp
0062     ${CMAKE_CURRENT_SOURCE_DIR}/models/camitemsortsettings.cpp
0063 
0064     ${CMAKE_CURRENT_SOURCE_DIR}/items/camerafolderitem.cpp
0065     ${CMAKE_CURRENT_SOURCE_DIR}/items/itemviewimportdelegate.cpp
0066     ${CMAKE_CURRENT_SOURCE_DIR}/items/importcategorydrawer.cpp
0067     ${CMAKE_CURRENT_SOURCE_DIR}/items/importdelegate.cpp
0068     ${CMAKE_CURRENT_SOURCE_DIR}/items/importtooltipfiller.cpp
0069     ${CMAKE_CURRENT_SOURCE_DIR}/items/importoverlays.cpp
0070 
0071     ${CMAKE_CURRENT_SOURCE_DIR}/views/camerafolderview.cpp
0072     ${CMAKE_CURRENT_SOURCE_DIR}/views/cameranamehelper.cpp
0073     ${CMAKE_CURRENT_SOURCE_DIR}/views/freespacetooltip.cpp
0074     ${CMAKE_CURRENT_SOURCE_DIR}/views/importcategorizedview.cpp
0075     ${CMAKE_CURRENT_SOURCE_DIR}/views/importthumbnailbar.cpp
0076     ${CMAKE_CURRENT_SOURCE_DIR}/views/importpreviewview.cpp
0077     ${CMAKE_CURRENT_SOURCE_DIR}/views/importiconview.cpp
0078     ${CMAKE_CURRENT_SOURCE_DIR}/views/importiconview_p.cpp
0079     ${CMAKE_CURRENT_SOURCE_DIR}/views/importstackedview.cpp
0080     ${CMAKE_CURRENT_SOURCE_DIR}/views/importview.cpp
0081 
0082     ${CMAKE_CURRENT_SOURCE_DIR}/main/importui.cpp
0083 )
0084 
0085 # Used by digikamgui
0086 add_library(gui_importuibackend_obj OBJECT ${libimportuibackend_SRCS})
0087 
0088 target_compile_definitions(gui_importuibackend_obj
0089                            PRIVATE
0090                            digikamgui_EXPORTS
0091 )
0092 
0093 # Used by digikamgui
0094 add_library(gui_importui_obj OBJECT ${libimportui_SRCS})
0095 
0096 target_compile_definitions(gui_importui_obj
0097                            PRIVATE
0098                            digikamgui_EXPORTS
0099 )
0100 
0101 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/main/importui5.rc DESTINATION ${KDE_INSTALL_FULL_KXMLGUIDIR}/digikam)