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

0001 cmake_minimum_required(VERSION 3.15)
0002 
0003 project(plasma-phonebook)
0004 set(PROJECT_VERSION "22.06")
0005 
0006 set(KF5_MIN_VERSION "5.93.0")
0007 set(QT_MIN_VERSION "5.15.2")
0008 
0009 set(CMAKE_CXX_STANDARD 17)
0010 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0011 
0012 find_package(ECM ${KF5_MIN_VERSION} REQUIRED)
0013 
0014 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0015 
0016 include(FeatureSummary)
0017 include(ECMSetupVersion)
0018 include(ECMGenerateHeaders)
0019 include(KDEInstallDirs)
0020 include(KDECMakeSettings)
0021 include(ECMPoQmTools)
0022 include(KDECompilerSettings NO_POLICY_SCOPE)
0023 include(KDEClangFormat)
0024 include(KDEGitCommitHooks)
0025 
0026 ecm_setup_version(${PROJECT_VERSION}
0027     VARIABLE_PREFIX PLASMAPHONEBOOK
0028     VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/version.h
0029 )
0030 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Test Gui Svg QuickControls2 Widgets)
0031 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS CoreAddons Kirigami2 People Contacts Config)
0032 find_package(KF5PeopleVCard REQUIRED)
0033 
0034 if(ANDROID)
0035     find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS AndroidExtras)
0036 endif()
0037 
0038 add_subdirectory(src)
0039 
0040 ki18n_install(po)
0041 
0042 install(PROGRAMS org.kde.phonebook.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0043 install(FILES org.kde.phonebook.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0044 install(FILES org.kde.phonebook.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
0045 
0046 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0047 
0048 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
0049 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
0050 
0051 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)