Warning, /graphics/digikam/core/libs/models/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(
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 
0016     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0017     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::XmlGui,INTERFACE_INCLUDE_DIRECTORIES>
0018     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::Solid,INTERFACE_INCLUDE_DIRECTORIES>
0019 
0020     ${CMAKE_SOURCE_DIR}/core/app/main
0021 )
0022 
0023 if(ENABLE_DBUS)
0024     include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::DBus,INTERFACE_INCLUDE_DIRECTORIES>)
0025 endif()
0026 
0027 # ---------------------------------------------------------------------
0028 
0029 set(libgenericmodels_SRCS
0030     ${CMAKE_CURRENT_SOURCE_DIR}/categorizeditemmodel.cpp
0031 )
0032 
0033 # Used by digikamcore
0034 add_library(core_digikamgenericmodels_obj OBJECT ${libgenericmodels_SRCS})
0035 
0036 target_compile_definitions(core_digikamgenericmodels_obj
0037                            PRIVATE
0038                            digikamcore_EXPORTS
0039 )
0040 
0041 # ---------------------------------------------------------------------
0042 
0043 set(libalbummodels_SRCS
0044     ${CMAKE_CURRENT_SOURCE_DIR}/itemalbummodel.cpp
0045     ${CMAKE_CURRENT_SOURCE_DIR}/itemalbumfiltermodel.cpp
0046     ${CMAKE_CURRENT_SOURCE_DIR}/abstractalbummodel.cpp
0047     ${CMAKE_CURRENT_SOURCE_DIR}/abstractalbummodel_counting.cpp
0048     ${CMAKE_CURRENT_SOURCE_DIR}/abstractalbummodel_checkable.cpp
0049     ${CMAKE_CURRENT_SOURCE_DIR}/abstractalbummodel_specific.cpp
0050     ${CMAKE_CURRENT_SOURCE_DIR}/albummodel.cpp
0051     ${CMAKE_CURRENT_SOURCE_DIR}/albummodel_date.cpp
0052     ${CMAKE_CURRENT_SOURCE_DIR}/albummodel_search.cpp
0053     ${CMAKE_CURRENT_SOURCE_DIR}/albummodel_tag.cpp
0054     ${CMAKE_CURRENT_SOURCE_DIR}/albumfiltermodel.cpp
0055     ${CMAKE_CURRENT_SOURCE_DIR}/albumfiltermodel_search.cpp
0056     ${CMAKE_CURRENT_SOURCE_DIR}/albumfiltermodel_tagproperties.cpp
0057     ${CMAKE_CURRENT_SOURCE_DIR}/albumfiltermodel_checkable.cpp
0058     ${CMAKE_CURRENT_SOURCE_DIR}/albumfiltermodel_tagsmanager.cpp
0059     ${CMAKE_CURRENT_SOURCE_DIR}/albummodeldragdrophandler.cpp
0060 )
0061 
0062 # Used by digikamgui
0063 add_library(gui_digikammodels_obj OBJECT ${libalbummodels_SRCS})
0064 
0065 target_compile_definitions(gui_digikammodels_obj
0066                            PRIVATE
0067                            digikamgui_EXPORTS
0068 )