Warning, /utilities/krename/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.7)
0002 
0003 project(krename VERSION "5.0.60")
0004 
0005 set(QT5_MIN_VERSION "5.12.0")
0006 set(KF5_MIN_VERSION "5.85.0")
0007 set(KDE_COMPILERSETTINGS_LEVEL "5.82.0")
0008 
0009 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0010 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${ECM_MODULE_PATH})
0011 
0012 include(KDEInstallDirs)
0013 include(ECMInstallIcons)
0014 include(KDECMakeSettings)
0015 include(KDECompilerSettings NO_POLICY_SCOPE)
0016 include(FeatureSummary)
0017 
0018 find_package(Qt5 ${QT5_MIN_VERSION} REQUIRED COMPONENTS
0019     Core
0020     Widgets
0021     Qml
0022 )
0023 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0024     Completion
0025     Config
0026     CoreAddons
0027     Crash
0028     I18n
0029     IconThemes
0030     ItemViews
0031     JobWidgets
0032     KIO
0033     Service
0034     WidgetsAddons
0035     XmlGui
0036 )
0037 
0038 add_definitions(
0039     -DQT_DEPRECATED_WARNINGS
0040     -DQT_DISABLE_DEPRECATED_BEFORE=0x050d00
0041     -DQT_NO_SIGNALS_SLOTS_KEYWORDS
0042     -DQT_NO_URL_CAST_FROM_STRING
0043     -DQT_STRICT_ITERATORS
0044 )
0045 
0046 
0047 # Find KArchive
0048 find_package(KF5Archive)
0049 set_package_properties(KF5Archive PROPERTIES
0050     PURPOSE "Needed for ODF plugin"
0051     TYPE OPTIONAL)
0052 
0053 # Find taglib
0054 set(TAGLIB_MIN_VERSION "1.5")
0055 find_package(Taglib ${TAGLIB_MIN_VERSION})
0056 set_package_properties(Taglib PROPERTIES
0057     TYPE OPTIONAL)
0058 
0059 # Find exiv2
0060 find_package(LibExiv2 0.13) # AccessMode was added in 0.13
0061 set_package_properties(LibExiv2 PROPERTIES TYPE OPTIONAL)
0062 
0063 if (LibExiv2_VERSION VERSION_GREATER_EQUAL "0.27")
0064     set(HAVE_LIBEXIV2_0_27 TRUE)
0065 endif()
0066 
0067 # Find podofo
0068 find_package(PoDoFo)
0069 set_package_properties(PoDoFo PROPERTIES
0070     DESCRIPTION "A library to access PDF metadata"
0071     URL "http://podofo.sourceforge.net/"
0072     TYPE OPTIONAL)
0073 
0074 # Find freetype
0075 find_package(Freetype)
0076 set_package_properties(Freetype PROPERTIES
0077     DESCRIPTION "A library to access font metadata"
0078     URL "https://www.freetype.org"
0079     TYPE OPTIONAL)
0080 
0081 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0082 
0083 set(HAVE_TAGLIB ${TAGLIB_FOUND})
0084 set(HAVE_EXIV2 ${LibExiv2_FOUND})
0085 set(HAVE_PODOFO ${PoDoFo_FOUND})
0086 set(HAVE_KARCHIVE ${KF5Archive_FOUND})
0087 set(HAVE_FREETYPE ${FREETYPE_FOUND})
0088 configure_file(config-krename.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krename.h)
0089 
0090 # Directories
0091 
0092 add_subdirectory(src)
0093 add_subdirectory(autotests)