Warning, /accessibility/kmouth/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required(VERSION 3.16) 0002 0003 # KDE Gear version, managed by release script 0004 set (RELEASE_SERVICE_VERSION_MAJOR "24") 0005 set (RELEASE_SERVICE_VERSION_MINOR "01") 0006 set (RELEASE_SERVICE_VERSION_MICRO "95") 0007 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}") 0008 0009 project(kmouth VERSION ${RELEASE_SERVICE_VERSION}) 0010 set(QT_REQUIRED_VERSION "6.4.0") 0011 set(KF_MIN_VERSION "5.240.0") 0012 0013 0014 if(NOT MSVC) 0015 set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Wall -Wno-switch -O2 -g") 0016 set(CMAKE_CXX_FLAGS_RELEASE "-Wall -Wno-switch -O2") 0017 set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Wno-switch -g3 -ggdb -O0" CACHE STRING "Debug options." FORCE) 0018 endif(NOT MSVC) 0019 0020 include(FeatureSummary) 0021 0022 find_package(ECM ${KF_MIN_VERSION} NO_MODULE REQUIRED) 0023 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ) 0024 include(ECMAddAppIcon) 0025 include(KDEInstallDirs) 0026 include(KDECMakeSettings) 0027 include(KDECompilerSettings NO_POLICY_SCOPE) 0028 include(ECMInstallIcons) 0029 include(ECMSetupVersion) 0030 include(ECMDeprecationSettings) 0031 0032 include(KDEClangFormat) 0033 include(KDEGitCommitHooks) 0034 0035 find_package(Qt6 ${QT_MIN_VERSION} REQUIRED COMPONENTS 0036 Core 0037 PrintSupport 0038 TextToSpeech 0039 Xml 0040 Widgets 0041 ) 0042 0043 find_package(KF6 ${KF_MIN_VERSION} REQUIRED COMPONENTS 0044 Crash 0045 Completion 0046 Config 0047 ConfigWidgets 0048 CoreAddons 0049 DocTools 0050 I18n 0051 KIO 0052 WidgetsAddons 0053 XmlGui 0054 ) 0055 0056 ecm_setup_version(${kmouth_VERSION} 0057 VARIABLE_PREFIX KMOUTH 0058 VERSION_HEADER version.h 0059 ) 0060 0061 include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) 0062 ecm_set_disabled_deprecation_versions(QT 6.6 KF 5.240.0) 0063 0064 add_subdirectory( doc ) 0065 add_subdirectory( icons ) 0066 add_subdirectory( books ) 0067 0068 include_directories(./wordcompletion/ ) 0069 0070 0071 ########### next target ############### 0072 add_executable(kmouth) 0073 0074 target_sources(kmouth PRIVATE 0075 ./phrasebook/phrasebookreader.cpp 0076 ./phrasebook/phrasebookdialog.cpp 0077 ./phrasebook/initialphrasebookwidget.cpp 0078 ./phrasebook/phrasebook.cpp 0079 ./wordcompletion/wordlist.cpp 0080 ./wordcompletion/wordcompletion.cpp 0081 ./wordcompletion/wordcompletionwidget.cpp 0082 ./wordcompletion/dictionarycreationwizard.cpp 0083 texttospeechconfigurationwidget.cpp 0084 optionsdialog.cpp 0085 configwizard.cpp 0086 phraselist.cpp 0087 speech.cpp 0088 texttospeechsystem.cpp 0089 kmouth.cpp 0090 main.cpp 0091 0092 kmouth.qrc 0093 ) 0094 0095 ki18n_wrap_ui(kmouth 0096 ./phrasebook/phrasebookdialog.ui 0097 ./wordcompletion/creationsourceui.ui 0098 ./wordcompletion/creationsourcedetailsui.ui 0099 ./wordcompletion/kdedocsourceui.ui 0100 ./wordcompletion/wordcompletionui.ui 0101 preferencesui.ui 0102 texttospeechconfigurationui.ui ) 0103 0104 0105 target_link_libraries(kmouth 0106 KF6::Completion 0107 KF6::ConfigCore 0108 KF6::Crash 0109 KF6::KIOCore 0110 KF6::KIOWidgets 0111 KF6::I18n 0112 KF6::WidgetsAddons 0113 KF6::XmlGui 0114 Qt::PrintSupport 0115 Qt::TextToSpeech 0116 Qt::Widgets 0117 Qt::Xml ) 0118 0119 install(TARGETS kmouth ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0120 0121 0122 ########### install files ############### 0123 0124 install( PROGRAMS org.kde.kmouth.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 0125 install( FILES kmouthrc DESTINATION ${KDE_INSTALL_CONFDIR} ) 0126 install(FILES org.kde.kmouth.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) 0127 0128 ki18n_install(po) 0129 kdoctools_install(po) 0130 0131 file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h) 0132 kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) 0133 0134 kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) 0135 0136 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) 0137