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 "6.5.2")
0006 set(KF_MIN_VERSION "5.240.0")
0007 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0008 
0009 find_package(ECM ${KF_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(ECMQmlModule)
0028 include(ECMDeprecationSettings)
0029 find_package(Qt6 ${QT_REQUIRED_VERSION} REQUIRED NO_MODULE COMPONENTS
0030     Widgets
0031     Xml
0032     Svg
0033     Test
0034     Qml
0035     Quick
0036     PrintSupport
0037     Core5Compat
0038     OpenGLWidgets
0039 )
0040 set(ANALITZA_INCLUDE_INSTALL_DIR "${KDE_INSTALL_INCLUDEDIR}/Analitza6")
0041 
0042 ecm_setup_version(8.0.0 VARIABLE_PREFIX ANALITZA
0043                         VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/analitza_version.h"
0044                         PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/Analitza6ConfigVersion.cmake")
0045 
0046 find_package(Eigen3 CONFIG) # find and setup Eigen3 if available
0047 set(HAVE_EIGEN3 ${EIGEN3_FOUND})
0048 
0049 include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR})
0050 
0051 remove_definitions(-DQT_NO_CAST_FROM_ASCII)
0052 remove_definitions(-DQT_NO_CAST_FROM_BYTEARRAY)
0053 ecm_set_disabled_deprecation_versions(QT 5.12.2
0054     KF 5.102
0055 )
0056 
0057 
0058 add_subdirectory(analitza)
0059 add_subdirectory(analitzaplot)
0060 add_subdirectory(analitzagui)
0061 add_subdirectory(analitzawidgets)
0062 add_subdirectory(declarative)
0063 
0064 ecm_install_po_files_as_qm(poqm)
0065 
0066 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Analitza6")
0067 configure_package_config_file(
0068   "${CMAKE_CURRENT_SOURCE_DIR}/Analitza6Config.cmake.in"
0069   "${CMAKE_CURRENT_BINARY_DIR}/Analitza6Config.cmake"
0070   INSTALL_DESTINATION  ${CMAKECONFIG_INSTALL_DIR}
0071   PATH_VARS  KDE_INSTALL_INCLUDEDIR CMAKE_INSTALL_PREFIX
0072 )
0073 
0074 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config-analitza.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-analitza.h)
0075 
0076 install(FILES
0077   "${CMAKE_CURRENT_BINARY_DIR}/Analitza6Config.cmake"
0078   "${CMAKE_CURRENT_BINARY_DIR}/Analitza6ConfigVersion.cmake"
0079   DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0080   COMPONENT Devel
0081 )
0082 
0083 install(EXPORT AnalitzaTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE Analitza6Targets.cmake NAMESPACE KF6:: )
0084 
0085 install(FILES
0086   ${CMAKE_CURRENT_BINARY_DIR}/analitza_version.h
0087   DESTINATION ${ANALITZA_INCLUDE_INSTALL_DIR} COMPONENT Devel
0088 )
0089 
0090 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)