Warning, /libraries/ktextaddons/textgrammarcheck/common/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0002 # SPDX-License-Identifier: BSD-3-Clause
0003
0004 add_library(grammarcommon)
0005
0006 target_sources(grammarcommon PRIVATE
0007 grammarerror.cpp
0008 grammarresulttextedit.cpp
0009 grammarresultwidget.cpp
0010 grammarerror.h
0011 grammarresulttextedit.h
0012 grammarresultwidget.h
0013 grammarresultutil.h
0014 grammarresultutil.cpp
0015 )
0016
0017 ecm_qt_declare_logging_category(grammarcommon HEADER grammarcommon_debug.h IDENTIFIER LIBGRAMMARCOMMON_LOG CATEGORY_NAME org.kde.kf${KF_MAJOR_VERSION}.libgrammarcommon
0018 DESCRIPTION "KF${KF_MAJOR_VERSION} (libgramalecte common)"
0019 EXPORT KTEXTADDONS
0020 )
0021
0022
0023 generate_export_header(grammarcommon BASE_NAME grammarcommon)
0024 if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
0025 set_target_properties(grammarcommon PROPERTIES UNITY_BUILD ON)
0026 endif()
0027
0028 target_link_libraries(grammarcommon
0029 KF${KF_MAJOR_VERSION}::I18n
0030 )
0031
0032 set_target_properties(grammarcommon
0033 PROPERTIES OUTPUT_NAME grammarcommon VERSION ${KDEPIMADDONS_LIB_VERSION} SOVERSION ${KDEPIMADDONS_LIB_SOVERSION}
0034 )
0035
0036
0037 install(TARGETS grammarcommon ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
0038
0039 if(BUILD_TESTING)
0040 add_subdirectory(autotests)
0041 endif()