Warning, /graphics/digikam/core/cmake/rules/RulesLibJpeg.cmake 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 DETECT_JPEG()
0008 set(DIGIKAM_LIBJPEG_DIR libjpeg/${JPEG_LIB_VERSION})
0009 message(STATUS "Using libjpeg sub-directory: ${DIGIKAM_LIBJPEG_DIR}")
0010 
0011 # JPEG library version check
0012 
0013 message(STATUS "Looking for LibJpeg Version...")
0014 
0015 if(JPEG_FOUND)
0016 
0017     include_directories(${JPEG_INCLUDE_DIRS})
0018 
0019     # JPEG lib version is done on top level through DETECT_JPEG() from MacroJPEG.cmake
0020 
0021     if (${JPEG_LIB_VERSION} LESS 80)
0022 
0023         set(JPEG8_FOUND FALSE)
0024 
0025     else()
0026 
0027         set(JPEG8_FOUND TRUE)
0028 
0029     endif()
0030 
0031 endif()