Warning, /education/rocs/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 ##
0002 #   This file is part of Rocs.
0003 #   SPDX-FileCopyrightText: 2008-2011 Tomaz Canabrava <tomaz.canabrava@gmail.com>
0004 #   SPDX-FileCopyrightText: 2010 Wagner Reck <wagner.reck@gmail.com>
0005 #   SPDX-FileCopyrightText: 2011-2014 Andreas Cord-Landwehr <cordlandwehr@kde.org>
0006 #
0007 #   SPDX-License-Identifier: GPL-2.0-or-later
0008 ##
0009 
0010 cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
0011 
0012 # KDE Application Version, managed by release script
0013 set(RELEASE_SERVICE_VERSION_MAJOR "23")
0014 set(RELEASE_SERVICE_VERSION_MINOR "03")
0015 set(RELEASE_SERVICE_VERSION_MICRO "70")
0016 set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0017 
0018 project(rocs LANGUAGES CXX VERSION ${RELEASE_SERVICE_VERSION})
0019 
0020 set(QT_MIN_VERSION "5.15.2")
0021 set(KF_MIN_VERSION "5.90.0")
0022 
0023 find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)
0024 
0025 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0026 
0027 include(KDEInstallDirs)
0028 include(KDECMakeSettings)
0029 include(KDECompilerSettings NO_POLICY_SCOPE)
0030 include(KDEClangFormat)
0031 
0032 include(ECMAddAppIcon)
0033 include(ECMAddTests)
0034 include(ECMInstallIcons)
0035 include(ECMOptionalAddSubdirectory)
0036 include(ECMSetupVersion)
0037 include(ECMEnableSanitizers)
0038 include(FeatureSummary)
0039 include(GenerateExportHeader)
0040 
0041 find_package(Boost "1.49" REQUIRED)
0042 find_package(Grantlee5 "5.0.0" REQUIRED)
0043 
0044 if(BUILD_TESTING)
0045     set(QT_CONDITIONAL_COMPONENTS Test)
0046 endif()
0047 
0048 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS
0049     Core
0050     Gui
0051     QuickWidgets
0052     Script
0053     Widgets
0054     ScriptTools
0055     Svg
0056     XmlPatterns
0057     ${QT_CONDITIONAL_COMPONENTS}
0058 )
0059 find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS
0060     Archive
0061     Config
0062     CoreAddons
0063     Crash
0064     I18n
0065     ItemViews
0066     TextEditor
0067     XmlGui
0068 )
0069 find_package(KF5DocTools)
0070 
0071 include_directories(
0072     ${CMAKE_CURRENT_SOURCE_DIR}
0073     ${CMAKE_SOURCE_DIR}
0074     ${CMAKE_BINARY_DIR}
0075     ${Boost_INCLUDE_DIRS}
0076 )
0077 
0078 # added by KDE_COMPILERSETTINGS_LEVEL 5.85.0
0079 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0080 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0081 
0082 ecm_optional_add_subdirectory(libgraphtheory)
0083 ecm_optional_add_subdirectory(src)
0084 ecm_optional_add_subdirectory(icons)
0085 if(KF5DocTools_FOUND)
0086     ecm_optional_add_subdirectory(doc)
0087 endif()
0088 
0089 ki18n_install(po)
0090 if (KF5DocTools_FOUND)
0091     kdoctools_install(po)
0092 endif()
0093 set_package_properties(Boost PROPERTIES DESCRIPTION "Boost C++ Libraries" URL "https://www.boost.org")
0094 feature_summary(WHAT ALL)
0095 
0096 install(FILES org.kde.rocs.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})