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

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 # Release service version, managed by release script
0004 set(RELEASE_SERVICE_VERSION_MAJOR "23")
0005 set(RELEASE_SERVICE_VERSION_MINOR "03")
0006 set(RELEASE_SERVICE_VERSION_MICRO "70")
0007 
0008 set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0009 
0010 project(dolphin-plugins VERSION ${RELEASE_SERVICE_VERSION})
0011 
0012 set(QT_MIN_VERSION "5.15.2")
0013 set(KF5_MIN_VERSION "5.90.0")
0014 set(KDE_COMPILERSETTINGS_LEVEL "5.84")
0015 
0016 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0017 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${ECM_MODULE_PATH})
0018 
0019 include(KDEInstallDirs)
0020 include(KDECMakeSettings)
0021 include(KDECompilerSettings NO_POLICY_SCOPE)
0022 
0023 include(ECMOptionalAddSubdirectory)
0024 include(FeatureSummary)
0025 
0026 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00)
0027 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x055a00)
0028 
0029 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0030     Core
0031     Widgets
0032     Network
0033     DBus
0034 )
0035 
0036 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0037     XmlGui
0038     I18n
0039     KIO
0040     TextWidgets
0041     CoreAddons
0042     Solid
0043 )
0044 
0045 find_package(DolphinVcs)
0046 set_package_properties(DolphinVcs PROPERTIES
0047     DESCRIPTION "the Dolphin version control plugin library"
0048     URL "https://kde.org/applications/system/org.kde.dolphin"
0049     TYPE REQUIRED
0050     PURPOSE "Provides the version control plugin interface."
0051 )
0052 
0053 add_definitions(-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_FOREACH -DQT_NO_KEYWORDS)
0054 
0055 ecm_optional_add_subdirectory(svn)
0056 ecm_optional_add_subdirectory(git)
0057 ecm_optional_add_subdirectory(bazaar)
0058 ecm_optional_add_subdirectory(dropbox)
0059 ecm_optional_add_subdirectory(hg)
0060 if(UNIX AND NOT APPLE)
0061     ecm_optional_add_subdirectory(mountiso)
0062 endif()
0063 
0064 install(FILES org.kde.dolphin-plugins.metainfo.xml
0065         DESTINATION ${KDE_INSTALL_METAINFODIR})
0066 
0067 ki18n_install(po)
0068 
0069 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)