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

0001 cmake_minimum_required(VERSION 3.16)
0002 
0003 # KDE Application Version, managed by release script
0004 set(RELEASE_SERVICE_VERSION_MAJOR "23")
0005 set(RELEASE_SERVICE_VERSION_MINOR "03")
0006 set(RELEASE_SERVICE_VERSION_MICRO "70")
0007 set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 project(kalgebra VERSION ${RELEASE_SERVICE_VERSION})
0010 set(KF5_MIN_VERSION "5.92.0")
0011 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0012 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0013 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${ECM_MODULE_PATH})
0014 
0015 include(KDEInstallDirs)
0016 include(KDECompilerSettings NO_POLICY_SCOPE)
0017 include(KDECMakeSettings)
0018 include(ECMInstallIcons)
0019 include(ECMSetupVersion)
0020 include(FeatureSummary)
0021 include(ECMAddAppIcon)
0022 include(ECMDeprecationSettings)
0023 
0024 find_package(Qt${QT_MAJOR_VERSION} 5.15 REQUIRED NO_MODULE COMPONENTS Qml Quick Xml Svg PrintSupport Test)
0025 find_package(Analitza5 REQUIRED)
0026 
0027 ecm_set_disabled_deprecation_versions(QT 5.15.2
0028     KF 5.101
0029 )
0030 
0031 
0032 set(MOBILE_BACKEND "kde" CACHE STRING "Backend to install, currently. Check /mobile/plugins/widgets/*")
0033 
0034 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
0035 
0036 set(CURSES_NEED_NCURSES TRUE)
0037 find_package(Curses)
0038 find_package(Readline)
0039 
0040 ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KALGEBRA VERSION_HEADER kalgebra_version.h)
0041 
0042 set_package_properties(Readline PROPERTIES TYPE OPTIONAL
0043                                            PURPOSE "Allows KAlgebra to provide a console interface."
0044                                            URL "https://tiswww.case.edu/php/chet/readline/rltop.html")
0045 set_package_properties(Curses PROPERTIES TYPE OPTIONAL
0046                                          PURPOSE "Allows KAlgebra to provide a console interface."
0047                                          URL "https://www.gnu.org/software/ncurses/")
0048 
0049 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0050 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0051 add_definitions(-DQT_NO_CAST_TO_ASCII)
0052 
0053 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n CoreAddons)
0054 find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS ConfigWidgets WidgetsAddons KIO DocTools)
0055 find_package(Qt${QT_MAJOR_VERSION}WebEngineWidgets)
0056 if (QT_MAJOR_VERSION STREQUAL "6")
0057     find_package(Qt6 REQUIRED NO_MODULE COMPONENTS OpenGLWidgets)
0058 endif()
0059 
0060 
0061 if(KF5DocTools_FOUND AND Qt${QT_MAJOR_VERSION}WebEngineWidgets_FOUND AND KF5ConfigWidgets_FOUND AND KF5WidgetsAddons_FOUND AND KF5KIO_FOUND AND NOT CMAKE_SYSTEM MATCHES Android*)
0062     add_subdirectory(src)
0063     add_subdirectory(plasmoids)
0064 endif()
0065 
0066 add_subdirectory(icons)
0067 add_subdirectory(mobile)
0068 
0069 if(READLINE_FOUND AND CURSES_FOUND)
0070     add_subdirectory(calgebra)
0071 endif()
0072 
0073 if(KF5DocTools_FOUND)
0074   add_subdirectory(utils)
0075 
0076   add_custom_target(commandsdoc
0077     ${CMAKE_CURRENT_BINARY_DIR}/utils/docbook_analitzacommands commands.docbook
0078     DEPENDS docbook_analitzacommands
0079     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/doc/
0080     COMMENT "Generating commands docbook information"
0081   )
0082 
0083   add_subdirectory(doc)
0084 endif()
0085 
0086 ki18n_install(po)
0087 if (KF5DocTools_FOUND)
0088     kdoctools_install(po)
0089 endif()
0090 feature_summary(WHAT ALL   FATAL_ON_MISSING_REQUIRED_PACKAGES)