Changeset View
Changeset View
Standalone View
Standalone View
addons/externaltools/CMakeLists.txt
- This file was added.
1 | project(externaltoolsplugin) | ||||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kateexternaltoolsplugin\") | ||||
3 | | ||||
4 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | ||||
5 | | ||||
6 | set(externaltoolsplugin_PART_SRCS | ||||
7 | externaltoolsplugin.cpp | ||||
8 | kateexternaltoolsview.cpp | ||||
9 | katetoolrunner.cpp | ||||
10 | kateexternaltool.cpp | ||||
11 | katemacroexpander.cpp | ||||
12 | kateexternaltoolscommand.cpp | ||||
13 | kateexternaltoolsconfigwidget.cpp | ||||
14 | ) | ||||
15 | | ||||
16 | # resource for ui file and stuff | ||||
17 | qt5_add_resources(externaltoolsplugin_PART_SRCS plugin.qrc) | ||||
18 | | ||||
19 | set(externaltoolsplugin_PART_UI | ||||
20 | configwidget.ui | ||||
21 | tooldialog.ui | ||||
22 | toolview.ui | ||||
23 | ) | ||||
24 | ki18n_wrap_ui(externaltoolsplugin_PART_SRCS ${externaltoolsplugin_PART_UI} ) | ||||
25 | add_library(externaltoolsplugin MODULE ${externaltoolsplugin_PART_SRCS}) | ||||
26 | | ||||
27 | # we compile in the .desktop file | ||||
28 | kcoreaddons_desktop_to_json (externaltoolsplugin externaltoolsplugin.desktop) | ||||
29 | | ||||
30 | target_link_libraries(externaltoolsplugin | ||||
31 | KF5::CoreAddons | ||||
32 | KF5::IconThemes | ||||
33 | KF5::TextEditor | ||||
34 | KF5::I18n | ||||
35 | ) | ||||
36 | | ||||
37 | ########### install files ############### | ||||
38 | install(TARGETS externaltoolsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor ) | ||||
39 | | ||||
40 | ############# unit tests ################ | ||||
41 | if (BUILD_TESTING) | ||||
42 | add_subdirectory(autotests) | ||||
43 | endif() |