Warning, /graphics/digikam/core/tests/dimg/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 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 APPLY_COMMON_POLICIES()
0008 
0009 # Boost uses operator names (and, not, ...)
0010 string(REPLACE "-fno-operator-names" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
0011 
0012 include_directories(
0013     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::XmlGui,INTERFACE_INCLUDE_DIRECTORIES>
0014 
0015     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Test,INTERFACE_INCLUDE_DIRECTORIES>
0016     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0017     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Gui,INTERFACE_INCLUDE_DIRECTORIES>
0018     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Sql,INTERFACE_INCLUDE_DIRECTORIES>
0019 )
0020 
0021 #------------------------------------------------------------------------
0022 
0023 set(equalizefilter_cli_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/equalizefilter_cli.cpp)
0024 add_executable(equalizefilter_cli ${equalizefilter_cli_SRCS})
0025 ecm_mark_nongui_executable(equalizefilter_cli)
0026 
0027 target_link_libraries(equalizefilter_cli
0028 
0029                       digikamcore
0030 
0031                       ${COMMON_TEST_LINK}
0032 )
0033 
0034 #------------------------------------------------------------------------
0035 
0036 set(colorbalancefilter_cli_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/colorbalancefilter_cli.cpp)
0037 add_executable(colorbalancefilter_cli ${colorbalancefilter_cli_SRCS})
0038 ecm_mark_nongui_executable(colorbalancefilter_cli)
0039 
0040 target_link_libraries(colorbalancefilter_cli
0041 
0042                       digikamcore
0043 
0044                       ${COMMON_TEST_LINK}
0045 )
0046 
0047 #------------------------------------------------------------------------
0048 
0049 if(ImageMagick_Magick++_FOUND)
0050 
0051     set(magickloader_cli_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/magickloader_cli.cpp)
0052     add_executable(magickloader_cli ${magickloader_cli_SRCS})
0053 
0054     target_link_libraries(magickloader_cli
0055 
0056                           digikamcore
0057 
0058                           ${COMMON_TEST_LINK}
0059     )
0060 
0061 endif()
0062 
0063 #------------------------------------------------------------------------
0064 
0065 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/dimgfilteraction_utest.cpp
0066 
0067               GUI
0068 
0069               NAME_PREFIX
0070 
0071               "digikam-"
0072 
0073               LINK_LIBRARIES
0074 
0075               digikamcore
0076 
0077               ${COMMON_TEST_LINK}
0078 )
0079 
0080 #------------------------------------------------------------------------
0081 
0082 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/dimgfilteractionkeys_utest.cpp
0083 
0084         GUI
0085 
0086         NAME_PREFIX
0087 
0088         "digikam-"
0089 
0090         LINK_LIBRARIES
0091 
0092         digikamcore
0093 
0094         ${COMMON_TEST_LINK}
0095 )
0096 
0097 #------------------------------------------------------------------------
0098 
0099 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/dimgloader_utest.cpp
0100 
0101         GUI
0102 
0103         NAME_PREFIX
0104 
0105         "digikam-"
0106 
0107         LINK_LIBRARIES
0108 
0109         digikamcore
0110 
0111         ${COMMON_TEST_LINK}
0112 )
0113 
0114 #------------------------------------------------------------------------
0115 
0116 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/dimgfreerotation_utest.cpp
0117 
0118               GUI
0119 
0120               NAME_PREFIX
0121 
0122               "digikam-"
0123 
0124               LINK_LIBRARIES
0125 
0126               digikamcore
0127 
0128               ${COMMON_TEST_LINK}
0129 )
0130 
0131 #------------------------------------------------------------------------
0132 
0133 add_library(libabstracthistory STATIC ${CMAKE_CURRENT_SOURCE_DIR}/dimgabstracthistory_utest.cpp)
0134 
0135 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/dimghistory_utest.cpp
0136 
0137               GUI
0138 
0139               NAME_PREFIX
0140 
0141               "digikam-"
0142 
0143               LINK_LIBRARIES
0144 
0145               libabstracthistory
0146 
0147               digikamcore
0148 
0149               ${COMMON_TEST_LINK}
0150 )
0151 
0152 #------------------------------------------------------------------------
0153 
0154 # TODO: This unit-test do not link yet under Microsoft compiler about HistoryGraphData
0155 
0156 if(NOT MSVC)
0157 
0158     ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/dimghistorygraph_utest.cpp
0159 
0160                   NAME_PREFIX
0161 
0162                   "digikam-"
0163 
0164                   LINK_LIBRARIES
0165 
0166                   digikamcore
0167                   digikamdatabase
0168                   libmodeltest
0169                   libabstracthistory
0170 
0171                   ${COMMON_TEST_LINK}
0172     )
0173 
0174 endif()