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 "22")
0014 set(RELEASE_SERVICE_VERSION_MINOR "11")
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.0")
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 
0031 include(ECMAddAppIcon)
0032 include(ECMAddTests)
0033 include(ECMInstallIcons)
0034 include(ECMOptionalAddSubdirectory)
0035 include(ECMSetupVersion)
0036 include(FeatureSummary)
0037 include(GenerateExportHeader)
0038 
0039 find_package(Boost "1.49" REQUIRED)
0040 find_package(Grantlee5 "5.0.0" REQUIRED)
0041 
0042 if(BUILD_TESTING)
0043     set(QT_CONDITIONAL_COMPONENTS Test)
0044 endif()
0045 
0046 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS
0047     Core
0048     Gui
0049     QuickWidgets
0050     Script
0051     Widgets
0052     ScriptTools
0053     Svg
0054     XmlPatterns
0055     ${QT_CONDITIONAL_COMPONENTS}
0056 )
0057 find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS
0058     Archive
0059     Config
0060     CoreAddons
0061     Crash
0062     I18n
0063     ItemViews
0064     TextEditor
0065     XmlGui
0066 )
0067 find_package(KF5DocTools)
0068 
0069 include_directories(
0070     ${CMAKE_CURRENT_SOURCE_DIR}
0071     ${CMAKE_SOURCE_DIR}
0072     ${CMAKE_BINARY_DIR}
0073     ${Boost_INCLUDE_DIRS}
0074 )
0075 
0076 # added by KDE_COMPILERSETTINGS_LEVEL 5.85.0
0077 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0078 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0079 
0080 ecm_optional_add_subdirectory(libgraphtheory)
0081 ecm_optional_add_subdirectory(src)
0082 ecm_optional_add_subdirectory(icons)
0083 if(KF5DocTools_FOUND)
0084     ecm_optional_add_subdirectory(doc)
0085 endif()
0086 
0087 ki18n_install(po)
0088 if (KF5DocTools_FOUND)
0089     kdoctools_install(po)
0090 endif()
0091 set_package_properties(Boost PROPERTIES DESCRIPTION "Boost C++ Libraries" URL "https://www.boost.org")
0092 feature_summary(WHAT ALL)
0093 
0094 install(FILES org.kde.rocs.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})