Warning, /graphics/libkdcraw/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2010-2015 Gilles Caulier <caulier dot gilles at gmail dot com>
0003 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 set(CMAKE_MIN_VERSION   "3.16.0")
0008 set(ECM_MIN_VERSION     "5.91.0")
0009 set(QT_MIN_VERSION      "5.15.0")
0010 set(LIBRAW_MIN_VERSION  "0.18")
0011 
0012 cmake_minimum_required(VERSION ${CMAKE_MIN_VERSION})
0013 
0014 project(libkdcraw)
0015 
0016 message(STATUS "----------------------------------------------------------------------------------")
0017 message(STATUS "Starting CMake configuration for: ${PROJECT_NAME}")
0018 
0019 # ==================================================================================================
0020 # Information to update before to release this library.
0021 
0022 # Library version history:
0023 # API      ABI
0024 # 0.1.0 => 0.1.0  (KDE3)
0025 # 0.1.1 => 1.0.0  (KDE3)
0026 # 0.1.2 => 2.0.0  (KDE3)
0027 # 0.1.3 => 2.1.0  (KDE3)
0028 # 0.1.4 => 3.0.0  (KDE3)
0029 # 0.1.5 => 4.0.0  (KDE3)
0030 # 0.2.0 => 5.0.0  (released with KDE 4.1.0)
0031 # 0.3.0 => 6.0.0  (released with KDE 4.1.2)
0032 # 0.4.0 => 7.0.0  (using libRaw-Released with KDE 4.2.0)
0033 # 0.5.0 => 7.1.0  (Released with KDE 4.3.0)
0034 # 1.0.0 => 8.0.0  (Released with KDE 4.4.0)
0035 # 1.1.0 => 8.1.0  (Released with KDE 4.4.2)
0036 # 1.2.0 => 9.0.0  (Released with KDE 4.5.0)
0037 # 1.3.0 => 10.0.0 (Released with KDE 4.6.0)
0038 # 2.0.0 => 20.0.0 (Released with KDE 4.7.0)
0039 # 2.0.1 => 20.0.1 (Released with KDE 4.8.0  - Introducing new deprecated members due to use libraw 0.14.x)
0040 # 2.1.0 => 21.0.0 (Released with KDE 4.8.1  - Remove deprecated members)
0041 # 2.2.0 => 22.0.0 (Released with KDE 4.10.0 - Including RawSpeed Codec)
0042 # 2.3.0 => 22.1.0 (Released with KDE 4.11.0 - Including Coverity Report fixes)
0043 # 2.3.1 => 22.1.1 (Released with KDE 4.11.2 - Including settings widget fixes)
0044 # 2.4.0 => 23.0.2 (Released with KDE 4.12.0 - Drop internal Libraw source code + new methods to get thumb and preview from QBuffer)
0045 # 5.0.0 => 5      (Released with KDE Applications)
0046 
0047 # Library API version
0048 SET(KDCRAW_LIB_MAJOR_VERSION "5")
0049 SET(KDCRAW_LIB_MINOR_VERSION "0")
0050 SET(KDCRAW_LIB_PATCH_VERSION "0")
0051 
0052 SET(LIBKDCRAW_LIB_VERSION "${KDCRAW_LIB_MAJOR_VERSION}.${KDCRAW_LIB_MINOR_VERSION}.${KDCRAW_LIB_PATCH_VERSION}")
0053 SET(LIBKDCRAW_SO_VERSION   5)
0054 
0055 ############## ECM setup ######################
0056 
0057 find_package(ECM ${ECM_MIN_VERSION} CONFIG REQUIRED)
0058 set(CMAKE_MODULE_PATH ${libkdcraw_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
0059 
0060 include(KDEInstallDirs)
0061 include(KDECMakeSettings)
0062 include(KDECompilerSettings NO_POLICY_SCOPE)
0063 
0064 include(ECMGenerateHeaders)
0065 include(ECMSetupVersion)
0066 include(CMakePackageConfigHelpers)
0067 include(ECMQtDeclareLoggingCategory)
0068 include(ECMGenerateExportHeader)
0069 include(ECMDeprecationSettings)
0070 include(FeatureSummary)
0071 
0072 ############## Find Packages ###################
0073 
0074 if (QT_MAJOR_VERSION STREQUAL "6")
0075     set(QT_MIN_VERSION "6.5.0")
0076 endif()
0077 
0078 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE
0079     COMPONENTS
0080         Core
0081         Gui
0082 )
0083 
0084 find_package(LibRaw ${LIBRAW_MIN_VERSION} REQUIRED)
0085 set_package_properties("LibRaw"    PROPERTIES
0086     DESCRIPTION "Required to build libkdcraw"
0087     URL         "https://www.libraw.org"
0088     TYPE        RECOMMENDED
0089     PURPOSE     "Library to decode RAW image"
0090 )
0091 
0092 ############## Targets #########################
0093 
0094 if (QT_MAJOR_VERSION STREQUAL "6")
0095     ecm_set_disabled_deprecation_versions(
0096         QT 6.5
0097     )
0098 else()
0099     ecm_set_disabled_deprecation_versions(
0100         QT 5.15
0101     )
0102 endif()
0103 
0104 add_subdirectory(src)
0105 
0106 if (BUILD_TESTING)
0107     add_subdirectory(tests)
0108 endif()
0109 
0110 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)