Warning, /sdk/libkomparediff2/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 project(LibKompareDiff2 VERSION "5.2")
0004 
0005 set(QT_MIN_VERSION "5.15.0")
0006 set(KF_MIN_VERSION "5.90.0")
0007 
0008 find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
0009 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
0010 
0011 include(KDEInstallDirs)
0012 include(KDECMakeSettings)
0013 include(KDECompilerSettings NO_POLICY_SCOPE)
0014 include(ECMQtDeclareLoggingCategory)
0015 
0016 include(CMakePackageConfigHelpers)
0017 include(FeatureSummary)
0018 include(GenerateExportHeader)
0019 
0020 set(ADDITIONAL_REQUIRED_QT_COMPONENTS)
0021 if(BUILD_TESTING)
0022     list(APPEND ADDITIONAL_REQUIRED_QT_COMPONENTS Test)
0023 endif()
0024 
0025 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED
0026     COMPONENTS
0027         Core
0028         Widgets
0029         ${ADDITIONAL_REQUIRED_QT_COMPONENTS}
0030 )
0031 
0032 find_package(KF5 ${KF_MIN_VERSION} REQUIRED
0033     COMPONENTS
0034         CoreAddons
0035         Codecs
0036         Config
0037         XmlGui
0038         I18n
0039         KIO
0040 )
0041 
0042 add_definitions(
0043     -DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
0044     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0045     -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055400
0046     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0047 )
0048 
0049 add_subdirectory(src)
0050 
0051 if (BUILD_TESTING)
0052     add_subdirectory(tests)
0053 endif()
0054 
0055 ki18n_install(po)
0056 
0057 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)