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 "22")
0005 set(RELEASE_SERVICE_VERSION_MINOR "11")
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.90.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 
0023 find_package(Qt${QT_MAJOR_VERSION} 5.15 REQUIRED NO_MODULE COMPONENTS Qml Quick Xml Svg PrintSupport Test)
0024 find_package(Analitza5 REQUIRED)
0025 
0026 set(MOBILE_BACKEND "kde" CACHE STRING "Backend to install, currently. Check /mobile/plugins/widgets/*")
0027 
0028 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
0029 
0030 set(CURSES_NEED_NCURSES TRUE)
0031 find_package(Curses)
0032 find_package(Readline)
0033 
0034 ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KALGEBRA VERSION_HEADER kalgebra_version.h)
0035 
0036 set_package_properties(Readline PROPERTIES TYPE OPTIONAL
0037                                            PURPOSE "Allows KAlgebra to provide a console interface."
0038                                            URL "https://tiswww.case.edu/php/chet/readline/rltop.html")
0039 set_package_properties(Curses PROPERTIES TYPE OPTIONAL
0040                                          PURPOSE "Allows KAlgebra to provide a console interface."
0041                                          URL "https://www.gnu.org/software/ncurses/")
0042 
0043 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0044 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0045 add_definitions(-DQT_NO_CAST_TO_ASCII)
0046 
0047 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS I18n CoreAddons)
0048 find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS ConfigWidgets WidgetsAddons KIO DocTools)
0049 find_package(Qt${QT_MAJOR_VERSION}WebEngineWidgets)
0050 if (QT_MAJOR_VERSION STREQUAL "6")
0051     find_package(Qt6 REQUIRED NO_MODULE COMPONENTS OpenGLWidgets)
0052 endif()
0053 
0054 
0055 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*)
0056     add_subdirectory(src)
0057     add_subdirectory(plasmoids)
0058 endif()
0059 
0060 add_subdirectory(icons)
0061 add_subdirectory(mobile)
0062 
0063 if(READLINE_FOUND AND CURSES_FOUND)
0064     add_subdirectory(calgebra)
0065 endif()
0066 
0067 if(KF5DocTools_FOUND)
0068   add_subdirectory(utils)
0069 
0070   add_custom_target(commandsdoc
0071     ${CMAKE_CURRENT_BINARY_DIR}/utils/docbook_analitzacommands commands.docbook
0072     DEPENDS docbook_analitzacommands
0073     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/doc/
0074     COMMENT "Generating commands docbook information"
0075   )
0076 
0077   add_subdirectory(doc)
0078 endif()
0079 
0080 ki18n_install(po)
0081 if (KF5DocTools_FOUND)
0082     kdoctools_install(po)
0083 endif()
0084 feature_summary(WHAT ALL   FATAL_ON_MISSING_REQUIRED_PACKAGES)