Changeset View
Changeset View
Standalone View
Standalone View
addons/preview/CMakeLists.txt
1 | add_definitions(-DTRANSLATION_DOMAIN=\"ktexteditorpreviewplugin\") | | |||
---|---|---|---|---|---|
2 | | ||||
3 | include(ECMQtDeclareLoggingCategory) | 1 | include(ECMQtDeclareLoggingCategory) | ||
4 | 2 | | |||
5 | set(ktexteditorpreviewplugin_SRCS | 3 | set(ktexteditorpreviewplugin_SRCS | ||
6 | ktexteditorpreviewplugin.cpp | 4 | ktexteditorpreviewplugin.cpp | ||
7 | ktexteditorpreviewview.cpp | 5 | ktexteditorpreviewview.cpp | ||
8 | previewwidget.cpp | 6 | previewwidget.cpp | ||
9 | kpartview.cpp | 7 | kpartview.cpp | ||
10 | ) | 8 | ) | ||
11 | 9 | | |||
12 | ecm_qt_declare_logging_category(ktexteditorpreviewplugin_SRCS | 10 | ecm_qt_declare_logging_category( | ||
11 | ktexteditorpreviewplugin_SRCS | ||||
13 | HEADER ktexteditorpreview_debug.h | 12 | HEADER ktexteditorpreview_debug.h | ||
14 | IDENTIFIER KTEPREVIEW | 13 | IDENTIFIER KTEPREVIEW | ||
15 | CATEGORY_NAME "ktexteditorpreviewplugin" | 14 | CATEGORY_NAME "ktexteditorpreviewplugin" | ||
16 | ) | 15 | ) | ||
17 | 16 | | |||
18 | add_library(ktexteditorpreviewplugin MODULE ${ktexteditorpreviewplugin_SRCS}) | 17 | add_library(ktexteditorpreviewplugin MODULE ${ktexteditorpreviewplugin_SRCS}) | ||
18 | target_compile_definitions(ktexteditorpreviewplugin PRIVATE TRANSLATION_DOMAIN="ktexteditorpreviewplugin") | ||||
19 | 19 | | |||
20 | target_link_libraries(ktexteditorpreviewplugin | 20 | target_link_libraries( | ||
21 | ktexteditorpreviewplugin | ||||
22 | PRIVATE | ||||
21 | KF5::TextEditor | 23 | KF5::TextEditor | ||
22 | KF5::I18n | 24 | KF5::I18n | ||
23 | ) | 25 | ) |