Warning, /utilities/kongress/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2020 Dimitris Kardarakos <dimkard@posteo.net>
0002 #
0003 # SPDX-License-Identifier: BSD-2-Clause
0004 
0005 cmake_minimum_required(VERSION 3.16)
0006 
0007 project(kongress VERSION)
0008 
0009 set(PROJECT_VERSION "22.06")
0010 
0011 set(KF5_MIN_VERSION "5.95.0")
0012 set(QT_MIN_VERSION "5.15.2")
0013 set (KDE_COMPILERSETTINGS_LEVEL "5.82.0")
0014 
0015 set(CMAKE_CXX_STANDARD 20)
0016 set(CMAKE_CXX_STANDARD_REQUIRED ON)
0017 
0018 option(REMINDERS_ENABLED "Build with reminders support" ON)
0019 
0020 include(CTest)
0021 include(FeatureSummary)
0022 
0023 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0024 
0025 # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
0026 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0027 
0028 include(KDEInstallDirs)
0029 include(KDECMakeSettings)
0030 include(KDECompilerSettings NO_POLICY_SCOPE)
0031 include(ECMPoQmTools)
0032 include(ECMSetupVersion)
0033 
0034 ecm_setup_version(${PROJECT_VERSION}
0035     VARIABLE_PREFIX KONGRESS
0036     VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/version.h
0037 )
0038 
0039 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Core Quick Gui Svg Qml QuickControls2 Network)
0040 
0041 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Config Kirigami2 I18n CalendarCore CoreAddons)
0042 
0043 if (ANDROID)
0044     find_package(OpenSSL REQUIRED)
0045 else()
0046     find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS Widgets)
0047 endif()
0048 if (BUILD_TESTING)
0049     find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Test)
0050 endif()
0051 if(NOT ANDROID AND REMINDERS_ENABLED)
0052     find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS DBusAddons Notifications)
0053 endif()
0054 
0055 add_subdirectory(src)
0056 
0057 if(NOT ANDROID AND REMINDERS_ENABLED)
0058     add_subdirectory(kongressac)
0059 endif()
0060 
0061 if (ANDROID)
0062     configure_file(${CMAKE_CURRENT_SOURCE_DIR}/android/version.gradle.in ${CMAKE_BINARY_DIR}/version.gradle)
0063 endif()
0064 
0065 if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
0066     ki18n_install(po)
0067 endif()
0068 
0069 install(FILES org.kde.kongress.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0070 install(PROGRAMS org.kde.kongress.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0071 install(FILES org.kde.kongress.svg DESTINATION ${KDE_INSTALL_FULL_ICONDIR}/hicolor/scalable/apps)
0072 
0073 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0074