Warning, /plasma/plasma-vault/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # vim:set softtabstop=3 shiftwidth=3 tabstop=3 expandtab:
0002 
0003 cmake_minimum_required(VERSION 3.16)
0004 
0005 project (PlasmaVault)
0006 
0007 set(PROJECT_VERSION "5.25.5")
0008 set(PROJECT_VERSION_MAJOR 5)
0009 
0010 set(CMAKE_CXX_STANDARD 17)
0011 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0012 
0013 set (PLASMAVAULT_VERSION "0.1")
0014 
0015 set (QT_MIN_VERSION 5.15.0)
0016 
0017 # We don't build in-source
0018 if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
0019    message (
0020       FATAL_ERROR
0021       "plasmavault requires an out of source build. Please create a separate build directory and run 'cmake path_to_plasma [options]' there."
0022    )
0023 endif ()
0024 
0025 # Extra CMake stuff
0026 include (FeatureSummary)
0027 
0028 set(QT_MIN_VERSION "5.15.2")
0029 set(KF5_MIN_VERSION "5.94")
0030 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0031 
0032 find_package (ECM ${KF5_MIN_VERSION}  NO_MODULE)
0033 set_package_properties (ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules")
0034 feature_summary (WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)
0035 
0036 set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
0037 
0038 include (KDEInstallDirs)
0039 include (KDECMakeSettings)
0040 include (KDECompilerSettings)
0041 include (GenerateExportHeader)
0042 include (ECMGenerateHeaders)
0043 include(KDEClangFormat)
0044 include(KDEGitCommitHooks)
0045 # Qt
0046 set (CMAKE_AUTOMOC ON)
0047 find_package (
0048    Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED
0049    COMPONENTS
0050       Core
0051       DBus
0052       Quick
0053       Widgets
0054    )
0055 
0056 find_package (
0057    KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0058    Activities
0059    Config
0060    ConfigWidgets
0061    CoreAddons
0062    DBusAddons
0063    I18n
0064    KIO
0065    Plasma
0066    WidgetsAddons
0067    )
0068 find_package (KF5NetworkManagerQt ${KF5_MIN_VERSION})
0069 if (KF5NetworkManagerQt_FOUND)
0070     set (HAVE_NETWORKMANAGER TRUE)
0071 endif()
0072 find_package (KSysGuard REQUIRED)
0073 
0074 include_directories (
0075    ${CMAKE_CURRENT_SOURCE_DIR}
0076    ${CMAKE_CURRENT_SOURCE_DIR}/common
0077    )
0078 
0079 # Basic includes
0080 include (CPack)
0081 
0082 include (ECMSetupVersion)
0083 
0084 add_definitions (-DQT_NO_URL_CAST_FROM_STRING)
0085 add_definitions (-DQT_NO_CAST_TO_ASCII)
0086 add_definitions (-DTRANSLATION_DOMAIN=\"plasmavault-kde\")
0087 add_definitions (-fexceptions)
0088 if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
0089     ki18n_install (po)
0090 endif ()
0091 
0092 # libPlasmaVault
0093 
0094 add_subdirectory (kded)
0095 add_subdirectory (plasma)
0096 add_subdirectory (icons)
0097 add_subdirectory (fileitemplugin)
0098 
0099 # add clang-format target for all our real source files
0100 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0101 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0102 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
0103 
0104 # Write out the features
0105 feature_summary (WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
0106