"Fossies" - the Fresh Open Source Software Archive

Member "digikam-6.3.0/core/libs/database/CMakeLists.txt" (4 Sep 2019, 8897 Bytes) of package /linux/misc/digikam-6.3.0.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "CMakeLists.txt": 6.2.0_vs_6.3.0.

    1 #
    2 # Copyright (c) 2010-2019 by Gilles Caulier, <caulier dot gilles at gmail dot com>
    3 # Copyright (c) 2015      by Veaceslav Munteanu, <veaceslav dot munteanu90 at gmail dot com>
    4 # Copyright (c) 2015      by Mohamed_Anwer, <m_dot_anwer at gmx dot com>
    5 # Copyright (C) 2018      by Mario Frank,   <mario dot frank at uni minus potsdam dot de>
    6 #
    7 # Redistribution and use is allowed according to the terms of the BSD license.
    8 # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
    9 
   10 # Boost uses operator names (and, not, ...)
   11 string(REPLACE "-fno-operator-names" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
   12 
   13 set(libdatabasemodels_SRCS
   14     models/itemfiltermodel.cpp
   15     models/itemfiltermodel_p.cpp
   16     models/itemfiltermodelthreads.cpp
   17     models/itemfiltersettings.cpp
   18     models/itemversionsmodel.cpp
   19     models/itemthumbnailmodel.cpp
   20     models/itemsortsettings.cpp
   21     models/itemlistmodel.cpp
   22     models/itemmodel.cpp
   23 )
   24 
   25 set(libdatabasecore_SRCS
   26     server/databaseserverstarter.cpp
   27     server/databaseservererror.cpp
   28     server/databaseserver.cpp
   29 
   30     engine/dbengineconfigloader.cpp
   31     engine/dbengineconfig.cpp
   32     engine/dbengineactiontype.cpp
   33     engine/dbengineerrorhandler.cpp
   34     engine/dbengineguierrorhandler.cpp
   35     engine/dbengineparameters.cpp
   36     engine/dbenginebackend.cpp
   37     engine/dbenginesqlquery.cpp
   38     engine/dbengineaccess.cpp
   39 
   40     tags/tagregion.cpp
   41 
   42     thumbsdb/thumbsdb.cpp
   43     thumbsdb/thumbsdbschemaupdater.cpp
   44     thumbsdb/thumbsdbbackend.cpp
   45     thumbsdb/thumbsdbaccess.cpp
   46 )
   47 
   48 set(libdatabaseutils_SRCS
   49     utils/widgets/dbstatdlg.cpp
   50     utils/widgets/dbsettingswidget.cpp
   51     utils/widgets/dbmigrationdlg.cpp
   52     utils/ifaces/dbinfoiface.cpp
   53     utils/ifaces/syncjob.cpp
   54     utils/ifaces/dio.cpp
   55     utils/scan/scancontroller.cpp
   56     utils/scan/scancontroller_p.cpp
   57     utils/scan/scancontroller_start.cpp
   58     utils/scan/scancontroller_progress.cpp
   59     utils/scan/scancontroller_stop.cpp
   60 )
   61 
   62 set(libdatabase_SRCS
   63     collection/collectionscanner.cpp
   64     collection/collectionscanner_p.cpp
   65     collection/collectionscanner_scan.cpp
   66     collection/collectionscanner_utils.cpp
   67     collection/collectionmanager.cpp
   68     collection/collectionmanager_p.cpp
   69     collection/collectionmanager_location.cpp
   70     collection/collectionmanager_album.cpp
   71     collection/collectionlocation.cpp
   72     collection/collectionscannerhints.cpp
   73 
   74     coredb/coredb.cpp
   75     coredb/coredbsearchxml.cpp
   76     coredb/coredbchecker.cpp
   77     coredb/coredbcopymanager.cpp
   78     coredb/coredbconstants.cpp
   79     coredb/coredbtransaction.cpp
   80     coredb/coredbschemaupdater.cpp
   81     coredb/coredbchangesets.cpp
   82     coredb/coredbthumbinfoprovider.cpp
   83     coredb/coredboperationgroup.cpp
   84     coredb/coredbbackend.cpp
   85     coredb/coredbwatch.cpp
   86     coredb/coredburl.cpp
   87     coredb/coredbaccess.cpp
   88     coredb/coredbnamefilter.cpp
   89     coredb/coredbdownloadhistory.cpp
   90 
   91     tags/tagproperties.cpp
   92     tags/tagscache.cpp
   93     tags/facetags.cpp
   94     tags/facetagseditor.cpp
   95     tags/facetagsiface.cpp
   96 
   97     dbjobs/dbjobsthread.cpp
   98     dbjobs/dbjob.cpp
   99     dbjobs/dbjobinfo.cpp
  100     dbjobs/dbjobsmanager.cpp
  101     dbjobs/duplicatesprogressobserver.cpp
  102 
  103     item/containers/iteminfo.cpp
  104     item/containers/iteminfolist.cpp
  105     item/containers/iteminfocache.cpp
  106     item/containers/itemcomments.cpp
  107     item/containers/itemcopyright.cpp
  108     item/containers/itemposition.cpp
  109     item/containers/itemtagpair.cpp
  110     item/containers/itemextendedproperties.cpp
  111 
  112     item/lister/itemlister.cpp
  113     item/lister/itemlister_palbum.cpp
  114     item/lister/itemlister_talbum.cpp
  115     item/lister/itemlister_salbum.cpp
  116     item/lister/itemlister_falbum.cpp
  117     item/lister/itemlisterrecord.cpp
  118     item/lister/itemlisterreceiver.cpp
  119     item/lister/itemattributeswatch.cpp
  120 
  121     item/query/itemquerybuilder.cpp
  122     item/query/itemquerybuilder_p.cpp
  123     item/query/itemqueryposthooks.cpp
  124     item/query/fieldquerybuilder.cpp
  125 
  126     item/scanner/itemscanner.cpp
  127     item/scanner/itemscanner_p.cpp
  128     item/scanner/itemscanner_database.cpp
  129     item/scanner/itemscanner_file.cpp
  130     item/scanner/itemscanner_photo.cpp
  131     item/scanner/itemscanner_video.cpp
  132     item/scanner/itemscanner_history.cpp
  133     item/scanner/itemscanner_baloo.cpp
  134 
  135     history/itemhistorygraph.cpp
  136     history/itemhistorygraphmodel.cpp
  137 
  138     similaritydb/similaritydb.cpp
  139     similaritydb/similaritydbschemaupdater.cpp
  140     similaritydb/similaritydbbackend.cpp
  141     similaritydb/similaritydbaccess.cpp
  142 )
  143 
  144 if(ENABLE_DBUS)
  145     set(libdatabase_SRCS
  146         ${libdatabase_SRCS}
  147         coredb/coredbwatchadaptor.cpp
  148        )
  149 endif()
  150 
  151 if(Marble_FOUND)
  152     set(libdatabase_SRCS
  153         ${libdatabase_SRCS}
  154         item/containers/itemgps.cpp
  155        )
  156 endif()
  157 
  158 # enable exceptions
  159 kde_source_files_enable_exceptions(history/itemhistorygraph.cpp history/itemhistorygraphmodel.cpp)
  160 
  161 set(libhaar_SRCS
  162     haar/haar.cpp
  163     haar/haariface.cpp
  164 )
  165 
  166 # Shared libdigikamdatabase ########################################################
  167 
  168 set(digikamdatabase_LIB_SRCS
  169     ${libdatabase_SRCS}
  170     ${libhaar_SRCS}
  171     ${pgfutils_SRCS}
  172 )
  173 
  174 include_directories(
  175     $<TARGET_PROPERTY:Qt5::Xml,INTERFACE_INCLUDE_DIRECTORIES>
  176     $<TARGET_PROPERTY:Qt5::Sql,INTERFACE_INCLUDE_DIRECTORIES>
  177     $<TARGET_PROPERTY:Qt5::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
  178     $<TARGET_PROPERTY:Qt5::Core,INTERFACE_INCLUDE_DIRECTORIES>
  179 
  180     $<TARGET_PROPERTY:KF5::Solid,INTERFACE_INCLUDE_DIRECTORIES>
  181     $<TARGET_PROPERTY:KF5::I18n,INTERFACE_INCLUDE_DIRECTORIES>
  182     $<TARGET_PROPERTY:KF5::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
  183     $<TARGET_PROPERTY:KF5::CoreAddons,INTERFACE_INCLUDE_DIRECTORIES>
  184     $<TARGET_PROPERTY:KF5::WidgetsAddons,INTERFACE_INCLUDE_DIRECTORIES>
  185     $<TARGET_PROPERTY:KF5::XmlGui,INTERFACE_INCLUDE_DIRECTORIES>
  186 )
  187 
  188 if(ENABLE_DBUS)
  189     include_directories($<TARGET_PROPERTY:Qt5::DBus,INTERFACE_INCLUDE_DIRECTORIES>)
  190 endif()
  191 
  192 add_library(digikamdatabase_src     OBJECT ${digikamdatabase_LIB_SRCS} ${libdatabasemodels_SRCS})
  193 add_library(digikamdatabasemain_src OBJECT ${libdatabaseutils_SRCS})
  194 add_library(digikamdatabasecore_src OBJECT ${libdatabasecore_SRCS})
  195 add_library(digikamdatabase         $<TARGET_OBJECTS:digikamdatabase_src>)
  196 
  197 generate_export_header(digikamdatabase
  198                        BASE_NAME digikam_database
  199                        EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/../../app/utils/digikam_database_export.h"
  200 )
  201 
  202 target_include_directories(digikamdatabase
  203                            PUBLIC
  204                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/coredb>
  205                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/collection>
  206                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/engine>
  207                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/dbjobs>
  208                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/item/containers>
  209                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/item/lister>
  210                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/item/query>
  211                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/item/scanner>
  212                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/tags>
  213                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/haar>
  214                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/imagehistory>
  215                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/server>
  216                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/thumbsdb>
  217                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/utils/widgets>
  218                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/utils/ifaces>
  219                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/utils/scan>
  220 )
  221 
  222 target_link_libraries(digikamdatabase
  223 
  224                       PRIVATE
  225 
  226                       digikamcore
  227 
  228                       Qt5::Core
  229                       Qt5::Gui
  230                       Qt5::Sql
  231 
  232                       KF5::ConfigCore
  233                       KF5::Solid
  234                       KF5::I18n
  235 )
  236 
  237 if(ENABLE_DBUS)
  238     target_link_libraries(digikamdatabase PRIVATE Qt5::DBus)
  239 endif()
  240 
  241 set_target_properties(digikamdatabase PROPERTIES VERSION ${DIGIKAM_VERSION_SHORT} SOVERSION ${DIGIKAM_VERSION_SHORT})
  242 
  243 # --- Install Rules ---
  244 
  245 install(TARGETS digikamdatabase EXPORT DigikamDatabaseConfig ${INSTALL_TARGETS_DEFAULT_ARGS})
  246 install(EXPORT DigikamDatabaseConfig DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/DigikamDatabase" NAMESPACE Digikam::)
  247 
  248 write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/DigikamDatabaseConfigVersion.cmake
  249                                  VERSION ${DIGIKAM_VERSION_SHORT}
  250                                  COMPATIBILITY SameMajorVersion)
  251 
  252 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/DigikamDatabaseConfigVersion.cmake
  253         DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/DigikamDatabase")