Warning, /graphics/digikam/core/tests/dngwriter/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 include(${CMAKE_SOURCE_DIR}/core/cmake/rules/RulesDNGSdk.cmake)
0008 
0009 include_directories(${CMAKE_SOURCE_DIR}/core/libs/dngwriter/extra/dng_sdk)
0010 
0011 # =======================================================
0012 # dng validate command line tool from DNG SDK
0013 
0014 set(dngvalidate_cli_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../../libs/dngwriter/extra/dng_sdk/dng_validate.cpp)
0015 
0016 add_executable(dngvalidate_cli ${dngvalidate_cli_SRCS})
0017 ecm_mark_nongui_executable(dngvalidate_cli)
0018 
0019 target_link_libraries(dngvalidate_cli
0020 
0021                       libdng
0022                       digikamcore
0023 
0024                       ${EXPAT_LIBRARY}
0025                       ${CMAKE_THREAD_LIBS_INIT}
0026                       PNG::PNG                          # For zlib
0027                       ${JPEG_LIBRARIES}
0028                      )
0029 
0030 # =======================================================
0031 # dng info command line tool
0032 
0033 set(dnginfo_cli_SRCS dnginfo_cli.cpp)
0034 
0035 add_executable(dnginfo_cli ${dnginfo_cli_SRCS})
0036 ecm_mark_nongui_executable(dnginfo_cli)
0037 
0038 target_link_libraries(dnginfo_cli
0039 
0040                       libdng
0041                       digikamcore
0042 
0043                       ${COMMON_TEST_LINK}
0044 
0045                       ${EXPAT_LIBRARY}
0046                       ${CMAKE_THREAD_LIBS_INIT}
0047                       PNG::PNG                          # For zlib
0048                       ${JPEG_LIBRARIES}
0049                      )
0050 
0051 # =======================================================
0052 # dng compare command line tool
0053 
0054 set(dngcompare_cli_SRCS dngcompare_cli.cpp)
0055 
0056 add_executable(dngcompare_cli ${dngcompare_cli_SRCS})
0057 ecm_mark_nongui_executable(dngcompare_cli)
0058 
0059 target_link_libraries(dngcompare_cli
0060 
0061                       libdng
0062                       digikamcore
0063 
0064                       ${COMMON_TEST_LINK}
0065 
0066                       ${EXPAT_LIBRARY}
0067                       ${CMAKE_THREAD_LIBS_INIT}
0068                       PNG::PNG                          # For zlib
0069                       ${JPEG_LIBRARIES}
0070                      )
0071 
0072 #------------------------------------------------------------------------
0073 
0074 ecm_add_tests(${CMAKE_CURRENT_SOURCE_DIR}/raw2dng_utest.cpp
0075 
0076               GUI
0077 
0078               NAME_PREFIX
0079 
0080               "digikam-"
0081 
0082               LINK_LIBRARIES
0083 
0084               digikamcore
0085 
0086               ${COMMON_TEST_LINK}
0087               ${EXPAT_LIBRARY}
0088               ${CMAKE_THREAD_LIBS_INIT}
0089               ${TIFF_LIBRARIES}
0090               PNG::PNG                          # For zlib
0091               ${JPEG_LIBRARIES}
0092 )