Changeset View
Changeset View
Standalone View
Standalone View
addons/lspclient/CMakeLists.txt
1 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | | |||
---|---|---|---|---|---|
2 | | ||||
3 | include(ECMQtDeclareLoggingCategory) | 1 | include(ECMQtDeclareLoggingCategory) | ||
4 | 2 | | |||
5 | add_definitions(-DTRANSLATION_DOMAIN=\"lspclient\") | | |||
6 | | ||||
7 | set(lspclientplugin_SRCS | 3 | set(lspclientplugin_SRCS | ||
8 | lspclientcompletion.cpp | 4 | lspclientcompletion.cpp | ||
9 | lspclientconfigpage.cpp | 5 | lspclientconfigpage.cpp | ||
Context not available. | |||||
13 | lspclientserver.cpp | 9 | lspclientserver.cpp | ||
14 | lspclientservermanager.cpp | 10 | lspclientservermanager.cpp | ||
15 | lspclientsymbolview.cpp | 11 | lspclientsymbolview.cpp | ||
12 | plugin.qrc | ||||
16 | ) | 13 | ) | ||
17 | 14 | | |||
18 | ecm_qt_declare_logging_category(lspclientplugin_debug_SRCS | 15 | ecm_qt_declare_logging_category( | ||
19 | HEADER lspclient_debug.h | 16 | lspclientplugin_debug_SRCS | ||
20 | IDENTIFIER LSPCLIENT | 17 | HEADER lspclient_debug.h | ||
21 | CATEGORY_NAME "katelspclientplugin" | 18 | IDENTIFIER LSPCLIENT | ||
19 | CATEGORY_NAME "katelspclientplugin" | ||||
22 | ) | 20 | ) | ||
23 | # resource for ui file and stuff | | |||
24 | qt5_add_resources(lspclientplugin_SRCS plugin.qrc) | | |||
25 | 21 | | |||
26 | add_library(lspclientplugin MODULE ${lspclientplugin_SRCS} ${lspclientplugin_debug_SRCS}) | 22 | add_library(lspclientplugin MODULE ${lspclientplugin_SRCS} ${lspclientplugin_debug_SRCS}) | ||
27 | 23 | target_compile_definitions(lspclientplugin PRIVATE TRANSLATION_DOMAIN="lspclient") | |||
28 | kcoreaddons_desktop_to_json(lspclientplugin lspclientplugin.desktop) | 24 | | ||
29 | 25 | target_link_libraries( | |||
30 | target_link_libraries(lspclientplugin | 26 | lspclientplugin | ||
31 | KF5::TextEditor | 27 | PRIVATE | ||
32 | KF5::XmlGui | 28 | KF5::TextEditor | ||
33 | KF5::ItemViews | 29 | KF5::XmlGui | ||
34 | KF5::ItemModels | 30 | KF5::ItemViews | ||
31 | KF5::ItemModels | ||||
35 | ) | 32 | ) | ||
36 | 33 | | |||
34 | kcoreaddons_desktop_to_json(lspclientplugin lspclientplugin.desktop) | ||||
37 | install(TARGETS lspclientplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) | 35 | install(TARGETS lspclientplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) | ||
38 | 36 | | |||
39 | ############# unit tests ################ | 37 | if(BUILD_TESTING) | ||
40 | if (BUILD_TESTING) | 38 | add_subdirectory(tests) | ||
41 | add_subdirectory(tests) | | |||
42 | endif() | 39 | endif() | ||
Context not available. |