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)
0004 
0005 cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
0006 # search packages used by KDE
0007 find_package(ECM 0.0.11 REQUIRED NO_MODULE)
0008 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0009 
0010 include(KDEInstallDirs)
0011 include(ECMInstallIcons)
0012 include(KDECMakeSettings)
0013 include(KDECompilerSettings NO_POLICY_SCOPE)
0014 include(FeatureSummary)
0015 
0016 find_package(Qt5 REQUIRED COMPONENTS Core Widgets)
0017 find_package(KF5 REQUIRED COMPONENTS
0018     Completion
0019     Config
0020     CoreAddons
0021     Crash
0022     I18n
0023     IconThemes
0024     ItemViews
0025     JobWidgets
0026     JS
0027     KIO
0028     Service
0029     WidgetsAddons
0030     XmlGui
0031 )
0032 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
0033 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules
0034                       ${CMAKE_MODULE_PATH})
0035 
0036 add_definitions(
0037     -DQT_DEPRECATED_WARNINGS
0038     -DQT_DISABLE_DEPRECATED_BEFORE=0x050700
0039     -DQT_NO_SIGNALS_SLOTS_KEYWORDS
0040     -DQT_NO_URL_CAST_FROM_STRING
0041     -DQT_STRICT_ITERATORS
0042 )
0043 
0044 set(KRENAME_VERSION "5.0.2")
0045 
0046 include(FindGettext)
0047 
0048 # Find taglib
0049 set(TAGLIB_MIN_VERSION "1.5")
0050 find_package(Taglib ${TAGLIB_MIN_VERSION})
0051 set_package_properties(Taglib PROPERTIES
0052     DESCRIPTION "Read and write tags in audio files"
0053     URL "https://taglib.github.io/"
0054     TYPE OPTIONAL)
0055 
0056 # Find exiv2
0057 find_package(LibExiv2 0.13) # AccessMode was added in 0.13
0058 set_package_properties(LibExiv2 PROPERTIES TYPE OPTIONAL)
0059 
0060 if (LibExiv2_VERSION VERSION_GREATER_EQUAL "0.27")
0061     set(HAVE_LIBEXIV2_0_27 TRUE)
0062 endif()
0063 
0064 # Find podofo
0065 find_package(PoDoFo)
0066 set_package_properties(PoDoFo PROPERTIES
0067     DESCRIPTION "A library to access PDF metadata"
0068     URL "http://podofo.sourceforge.net/"
0069     TYPE OPTIONAL)
0070 
0071 # Find freetype
0072 find_package(Freetype)
0073 set_package_properties(Freetype PROPERTIES
0074     DESCRIPTION "A library to access font metadata"
0075     URL "https://www.freetype.org"
0076     TYPE OPTIONAL)
0077 
0078 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0079 
0080 set(HAVE_TAGLIB ${TAGLIB_FOUND})
0081 set(HAVE_EXIV2 ${LibExiv2_FOUND})
0082 set(HAVE_PODOFO ${PoDoFo_FOUND})
0083 set(HAVE_FREETYPE ${FREETYPE_FOUND})
0084 configure_file(config-krename.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-krename.h)
0085 
0086 # Directories
0087 
0088 add_subdirectory(src)
0089 add_subdirectory(autotests)