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

0001 cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
0002 
0003 # KDE Application Version, managed by release script
0004 set(RELEASE_SERVICE_VERSION_MAJOR "24")
0005 set(RELEASE_SERVICE_VERSION_MINOR "04")
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(kturtle VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(QT_MIN_VERSION "6.5.0")
0012 set(KF5_MIN_VERSION "5.240.0")
0013 
0014 
0015 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0016 
0017 set(CMAKE_MODULE_PATH
0018     ${CMAKE_MODULE_PATH}
0019     ${ECM_MODULE_PATH}
0020     
0021 )
0022 include(KDEInstallDirs)
0023 include(KDECompilerSettings NO_POLICY_SCOPE)
0024 include(KDECMakeSettings)
0025 include(FeatureSummary)
0026 include(ECMAddAppIcon)
0027 include(ECMSetupVersion)
0028 include(ECMDeprecationSettings)
0029 
0030 find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0031     Core
0032     Gui
0033     Svg
0034     Widgets
0035     PrintSupport
0036 )
0037 find_package(Qt6Core5Compat)
0038 find_package(Qt6SvgWidgets)
0039 
0040 find_package(KF6 ${KF5_MIN_VERSION} REQUIRED
0041     Crash
0042     KIO
0043     NewStuff
0044     TextWidgets
0045     I18n
0046     CoreAddons
0047     XmlGui
0048 )
0049 find_package(KF6DocTools ${KF5_MIN_VERSION})
0050 set_package_properties(KF6DocTools PROPERTIES DESCRIPTION
0051     "Tools to generate documentation"
0052     TYPE OPTIONAL
0053 )
0054 
0055 ecm_set_disabled_deprecation_versions(
0056     QT 6.6
0057     KF 5.240.0
0058 )
0059 
0060 #Allows QString concatenation to use a single memory allocation per source line.
0061 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0062 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0063 add_subdirectory (src)
0064 add_subdirectory (icons)
0065 
0066 ki18n_install(po)
0067 if (KF6DocTools_FOUND)
0068     kdoctools_install(po)
0069     add_subdirectory(doc)
0070 endif()
0071 
0072 install(FILES org.kde.kturtle.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0073 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)