Warning, /frameworks/sonnet/src/plugins/ispellchecker/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(CheckIncludeFile)
0002
0003 # needs windows 8 or higher
0004 add_definitions(-DWINVER=0x0602 -D_WIN32_WINNT=0x0602)
0005
0006 CHECK_INCLUDE_FILE(spellcheck.h HAS_SPELLCHECK_H)
0007
0008 if (NOT HAS_SPELLCHECK_H)
0009 return()
0010 endif()
0011
0012 add_library(sonnet_ispellchecker MODULE
0013 ispellcheckerclient.cpp
0014 ispellcheckerdict.cpp
0015 )
0016
0017 ecm_qt_declare_logging_category(sonnet_ispellchecker
0018 HEADER ispellcheckerdebug.h
0019 IDENTIFIER SONNET_ISPELLCHECKER
0020 CATEGORY_NAME kf.sonnet.clients.ispellchecker
0021 OLD_CATEGORY_NAMES sonnet.plugins.ispellchecker
0022 DESCRIPTION "Sonnet ISpellChecker plugin"
0023 EXPORT SONNET
0024 )
0025
0026 target_link_libraries(sonnet_ispellchecker PRIVATE KF6::SonnetCore)
0027 target_compile_definitions(sonnet_ispellchecker PRIVATE DEFINITIONS SONNET_INSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
0028
0029 install(TARGETS sonnet_ispellchecker DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf6/sonnet/)