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

0001 cmake_minimum_required(VERSION 3.16)
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(kanagram VERSION ${RELEASE_SERVICE_VERSION})
0010 
0011 find_package(ECM 5.90.0 NO_MODULE REQUIRED)
0012 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
0013 set(KDE_COMPILERSETTINGS_LEVEL "5.82")
0014 include(ECMAddAppIcon)
0015 include(KDEInstallDirs)
0016 include(KDECMakeSettings)
0017 include(KDECompilerSettings NO_POLICY_SCOPE)
0018 include(ECMInstallIcons)
0019 include(ECMSetupVersion)
0020 
0021 
0022 if(NOT MSVC)
0023     set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Wall -Wno-switch -O2 -g")
0024     set(CMAKE_CXX_FLAGS_RELEASE "-Wall -Wno-switch -O2")
0025     set(CMAKE_CXX_FLAGS_DEBUG  "-Wall -Wno-switch -g3 -ggdb -O0" CACHE STRING "Debug options." FORCE)
0026 endif(NOT MSVC)
0027 
0028 include(FeatureSummary)
0029 find_package(Qt${QT_MAJOR_VERSION} REQUIRED COMPONENTS Core Qml Quick)
0030 find_package(Qt${QT_MAJOR_VERSION} QUIET OPTIONAL_COMPONENTS TextToSpeech)
0031 if (NOT Qt${QT_MAJOR_VERSION}TextToSpeech_FOUND)
0032     message(STATUS "Qt${QT_MAJOR_VERSION}TextToSpeech not found, speech feature will be disabled")
0033 else()
0034     add_definitions(-DHAVE_SPEECH)
0035 endif()
0036 
0037 
0038 find_package(KF5 REQUIRED COMPONENTS
0039     I18n
0040     Crash
0041     Sonnet
0042     Config
0043     ConfigWidgets
0044     CoreAddons
0045     DocTools
0046     KIO
0047     NewStuff
0048 )
0049 include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
0050 
0051 find_package(LibKEduVocDocument REQUIRED)
0052 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0053 add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
0054 
0055 
0056 
0057 add_subdirectory( doc )
0058 add_subdirectory( src )
0059 add_subdirectory( icons )
0060 
0061 ki18n_install(po)
0062 if (KF5DocTools_FOUND)
0063     kdoctools_install(po)
0064 endif()
0065 install(FILES org.kde.kanagram.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0066 
0067 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)