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 "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(kturtle VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 set(QT_MIN_VERSION "5.15.2")
0012 set(KF5_MIN_VERSION "5.90.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(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
0031     Core
0032     Gui
0033     Svg
0034     Widgets
0035     PrintSupport
0036 )
0037 if (QT_MAJOR_VERSION STREQUAL "6")
0038     find_package(Qt6Core5Compat)
0039     find_package(Qt6SvgWidgets)
0040 endif()
0041 
0042 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED
0043     Crash
0044     KIO
0045     NewStuff
0046     TextWidgets
0047     I18n
0048     CoreAddons
0049 )
0050 find_package(KF5DocTools ${KF5_MIN_VERSION})
0051 set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
0052     "Tools to generate documentation"
0053     TYPE OPTIONAL
0054 )
0055 
0056 ecm_set_disabled_deprecation_versions(
0057     QT ${QT_MIN_VERSION}
0058     KF 5.90.0
0059 )
0060 
0061 #Allows QString concatenation to use a single memory allocation per source line.
0062 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0063 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0064 add_subdirectory (src)
0065 add_subdirectory (icons)
0066 
0067 ki18n_install(po)
0068 if (KF5DocTools_FOUND)
0069     kdoctools_install(po)
0070     add_subdirectory(doc)
0071 endif()
0072 
0073 install(FILES org.kde.kturtle.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0074 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)