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

0001 # KTouch CMakeLists.txt file
0002 #
0003 # KDE Application Version, managed by release script
0004 set (RELEASE_SERVICE_VERSION_MAJOR "22")
0005 set (RELEASE_SERVICE_VERSION_MINOR "08")
0006 set (RELEASE_SERVICE_VERSION_MICRO "1")
0007 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 
0010 cmake_minimum_required(VERSION 3.15)
0011 project(ktouch VERSION ${RELEASE_SERVICE_VERSION})
0012 
0013 set(QT_MIN_VERSION "5.15.0")
0014 set(KF5_MIN_VERSION "5.90.0")
0015 set (KDE_COMPILERSETTINGS_LEVEL "5.82.0")
0016 
0017 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0018 find_package(KF5DocTools)
0019 set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} )
0020 
0021 include(KDEInstallDirs)
0022 include(ECMAddTests)
0023 include(KDECMakeSettings)
0024 include(KDECompilerSettings NO_POLICY_SCOPE)
0025 include(ECMInstallIcons)
0026 include(ECMOptionalAddSubdirectory)
0027 include(ECMSetupVersion)
0028 include(FeatureSummary)
0029 
0030 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED COMPONENTS
0031     Core
0032     Gui
0033     Qml
0034     Quick
0035     QuickWidgets
0036     QuickControls2
0037     Sql
0038     Widgets
0039     Xml
0040     XmlPatterns
0041 )
0042 if (QT_MAJOR_VERSION STREQUAL "5")
0043 find_package(Qt5X11Extras)
0044 endif()
0045 find_package(Qt${QT_MAJOR_VERSION} CONFIG QUIET OPTIONAL_COMPONENTS QuickCompiler)
0046 
0047 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0048     Completion
0049     Config
0050     ConfigWidgets
0051     CoreAddons
0052     DocTools
0053     I18n
0054     ItemViews
0055     KCMUtils
0056     TextWidgets
0057     WidgetsAddons
0058     WindowSystem
0059     XmlGui
0060     IconThemes
0061 )
0062 
0063 
0064 option(COMPILE_QML "Precompile QML code" OFF)
0065 
0066 # enable QML debugging for debug builds
0067 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DQT_QML_DEBUG")
0068 
0069 # subdirectories to build
0070 ecm_optional_add_subdirectory(data)
0071 ecm_optional_add_subdirectory(doc)
0072 ecm_optional_add_subdirectory(src)
0073 # ecm_optional_add_subdirectory(sounds)
0074 ecm_optional_add_subdirectory(icons)
0075 
0076 # files to install in the ktouch project root directory
0077 ki18n_install(po)
0078 if (KF5DocTools_FOUND)
0079     kdoctools_install(po)
0080 endif()
0081 install( PROGRAMS org.kde.ktouch.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
0082 install(FILES org.kde.ktouch.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0083 
0084 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)