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

0001 cmake_minimum_required(VERSION 3.16)
0002 set(ANALITZA_VERSION "8.0.0")
0003 project(Analitza VERSION ${ANALITZA_VERSION})
0004 
0005 set(QT_MIN_VERSION "5.15.2")
0006 set(KF5_MIN_VERSION "5.92.0")
0007 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0008 
0009 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0010 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
0011 
0012 #Checking whether we can compile calgebra
0013 
0014 
0015 include(CMakePackageConfigHelpers)
0016 include(FeatureSummary)
0017 include(ECMAddAppIcon)
0018 include(ECMSetupVersion)
0019 include(KDECompilerSettings NO_POLICY_SCOPE)
0020 include(ECMAddTests)
0021 include(KDEInstallDirs)
0022 include(KDECMakeSettings)
0023 include(GenerateExportHeader)
0024 include(CheckIncludeFiles)
0025 include(CheckLibraryExists) #FindCurses seems to need that on the CI
0026 include(ECMPoQmTools)
0027 include(ECMDeprecationSettings)
0028 find_package(Qt${QT_MAJOR_VERSION} ${QT_REQUIRED_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Xml Svg Test Qml Quick PrintSupport)
0029 if (QT_MAJOR_VERSION STREQUAL "6")
0030     find_package(Qt6 REQUIRED NO_MODULE COMPONENTS Core5Compat OpenGLWidgets)
0031 endif()
0032 set(ANALITZA_INCLUDE_INSTALL_DIR "${KDE_INSTALL_INCLUDEDIR}/Analitza5")
0033 
0034 ecm_setup_version(8.0.0 VARIABLE_PREFIX ANALITZA
0035                         VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/analitza_version.h"
0036                         PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/Analitza5ConfigVersion.cmake")
0037 
0038 find_package(Eigen3 CONFIG) # find and setup Eigen3 if available
0039 set(HAVE_EIGEN3 ${EIGEN3_FOUND})
0040 
0041 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
0042 
0043 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0044 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0045 ecm_set_disabled_deprecation_versions(QT 5.12.2
0046     KF 5.102
0047 )
0048 
0049 
0050 add_subdirectory(analitza)
0051 add_subdirectory(analitzaplot)
0052 add_subdirectory(analitzagui)
0053 add_subdirectory(analitzawidgets)
0054 add_subdirectory(declarative)
0055 
0056 ecm_install_po_files_as_qm(poqm)
0057 
0058 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Analitza5")
0059 configure_package_config_file(
0060   "${CMAKE_CURRENT_SOURCE_DIR}/Analitza5Config.cmake.in"
0061   "${CMAKE_CURRENT_BINARY_DIR}/Analitza5Config.cmake"
0062   INSTALL_DESTINATION  ${CMAKECONFIG_INSTALL_DIR}
0063   PATH_VARS  KDE_INSTALL_INCLUDEDIR CMAKE_INSTALL_PREFIX
0064 )
0065 
0066 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config-analitza.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-analitza.h)
0067 
0068 install(FILES
0069   "${CMAKE_CURRENT_BINARY_DIR}/Analitza5Config.cmake"
0070   "${CMAKE_CURRENT_BINARY_DIR}/Analitza5ConfigVersion.cmake"
0071   DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0072   COMPONENT Devel
0073 )
0074 
0075 install(EXPORT AnalitzaTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE Analitza5Targets.cmake NAMESPACE KF5:: )
0076 
0077 install(FILES
0078   ${CMAKE_CURRENT_BINARY_DIR}/analitza_version.h
0079   DESTINATION ${ANALITZA_INCLUDE_INSTALL_DIR} COMPONENT Devel
0080 )
0081 
0082 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)