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

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024, Gilles Caulier, <caulier dot gilles at gmail dot com>
0003 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 APPLY_COMMON_POLICIES()
0008 
0009 # ---------------------------------------------------------------------------
0010 
0011 kde_enable_exceptions()
0012 
0013 include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Xml,INTERFACE_INCLUDE_DIRECTORIES>
0014                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Sql,INTERFACE_INCLUDE_DIRECTORIES>
0015                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0016                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0017                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
0018                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Concurrent,INTERFACE_INCLUDE_DIRECTORIES>
0019 
0020                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
0021                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0022 
0023                     ${CMAKE_CURRENT_SOURCE_DIR}/common
0024                     ${CMAKE_CURRENT_SOURCE_DIR}/facedb
0025 
0026                     ${CMAKE_CURRENT_SOURCE_DIR}/detection
0027                     ${CMAKE_CURRENT_SOURCE_DIR}/detection/opencv-dnn
0028 
0029                     ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing
0030                     ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/shape-predictor
0031                     ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/recognition
0032 
0033                     ${CMAKE_CURRENT_SOURCE_DIR}/recognition
0034                     ${CMAKE_CURRENT_SOURCE_DIR}/recognition/opencv-dnn
0035 )
0036 
0037 # ---------------------------------------------------------------------------
0038 
0039 set(facesengine_LIB_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/common/identity.cpp
0040 
0041                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/facepreprocessor.cpp
0042                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/recognition/recognitionpreprocessor.cpp
0043                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/recognition/openfacepreprocessor.cpp
0044                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/shape-predictor/matrixoperations.cpp
0045                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/shape-predictor/pointtransformaffine.cpp
0046                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/shape-predictor/qdatastreamoverloads.cpp
0047                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/shape-predictor/fullobjectdetection.cpp
0048                          ${CMAKE_CURRENT_SOURCE_DIR}/preprocessing/shape-predictor/shapepredictor.cpp
0049 
0050                          ${CMAKE_CURRENT_SOURCE_DIR}/detection/facedetector.cpp
0051                          ${CMAKE_CURRENT_SOURCE_DIR}/detection/opencv-dnn/opencvdnnfacedetector.cpp
0052                          ${CMAKE_CURRENT_SOURCE_DIR}/detection/opencv-dnn/dnnfacedetectorssd.cpp
0053                          ${CMAKE_CURRENT_SOURCE_DIR}/detection/opencv-dnn/dnnfacedetectoryolo.cpp
0054                          ${CMAKE_CURRENT_SOURCE_DIR}/detection/opencv-dnn/dnnfacedetectorbase.cpp
0055 )
0056 
0057 # Used by digikamcore
0058 add_library(core_digikamfacesengine_obj
0059             OBJECT
0060             ${facesengine_LIB_SRCS}
0061 )
0062 
0063 target_compile_definitions(core_digikamfacesengine_obj
0064                            PRIVATE
0065                            digikamcore_EXPORTS
0066 )
0067 
0068 # For unit-tests
0069 add_library(digikamfacesengine STATIC $<TARGET_OBJECTS:core_digikamfacesengine_obj>)
0070 
0071 # ---------------------------------------------------------------------------
0072 
0073 set(facesengine_database_LIB_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/recognition/recognitiontrainingprovider.cpp
0074                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/dataproviders.cpp
0075 
0076                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/facialrecognition_wrapper.cpp
0077                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/facialrecognition_wrapper_p.cpp
0078                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/facialrecognition_wrapper_setup.cpp
0079                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/facialrecognition_wrapper_training.cpp
0080                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/facialrecognition_wrapper_recognize.cpp
0081                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/facialrecognition_wrapper_identity.cpp
0082 
0083                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/opencv-dnn/kd_node.cpp
0084                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/opencv-dnn/kd_tree.cpp
0085                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/opencv-dnn/opencvdnnfacerecognizer.cpp
0086                                   ${CMAKE_CURRENT_SOURCE_DIR}/recognition/opencv-dnn/dnnfaceextractor.cpp
0087 
0088                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedbaccess.cpp
0089                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedbbackend.cpp
0090                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedboperationgroup.cpp
0091                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedbschemaupdater.cpp
0092                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedb.cpp
0093                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedb_identity.cpp
0094                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedb_dnn.cpp
0095                                   ${CMAKE_CURRENT_SOURCE_DIR}/facedb/facedb_dnn_spatial.cpp
0096 )
0097 
0098 # Used by digikamgui
0099 add_library(gui_digikamfacesenginedatabase_obj
0100             OBJECT
0101             ${facesengine_database_LIB_SRCS}
0102 )
0103 
0104 target_compile_definitions(gui_digikamfacesenginedatabase_obj
0105                            PRIVATE
0106                            digikamgui_EXPORTS
0107 )
0108 
0109 # For unit-tests
0110 add_library(digikamfacesenginedatabase STATIC $<TARGET_OBJECTS:gui_digikamfacesenginedatabase_obj>)