Changeset View
Changeset View
Standalone View
Standalone View
addons/externaltools/CMakeLists.txt
- This file was added.
1 | project(externaltoolsplugin) | ||||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"externaltoolsplugin\") | ||||
3 | | ||||
4 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | ||||
5 | | ||||
6 | set(externaltoolsplugin_PART_SRCS | ||||
7 | externaltoolsplugin.cpp | ||||
8 | externaltools.cpp | ||||
9 | ) | ||||
10 | | ||||
11 | # resource for ui file and stuff | ||||
12 | qt5_add_resources(externaltoolsplugin_PART_SRCS plugin.qrc) | ||||
13 | | ||||
14 | set(externaltoolsplugin_PART_UI | ||||
15 | configwidget.ui | ||||
16 | tooldialog.ui | ||||
17 | ) | ||||
18 | ki18n_wrap_ui(externaltoolsplugin_PART_SRCS ${externaltoolsplugin_PART_UI} ) | ||||
19 | add_library(externaltoolsplugin MODULE ${externaltoolsplugin_PART_SRCS}) | ||||
20 | | ||||
21 | # we compile in the .desktop file | ||||
22 | kcoreaddons_desktop_to_json (externaltoolsplugin externaltoolsplugin.desktop) | ||||
23 | | ||||
24 | target_link_libraries(externaltoolsplugin | ||||
25 | KF5::CoreAddons | ||||
26 | KF5::IconThemes | ||||
27 | KF5::TextEditor | ||||
28 | KF5::I18n | ||||
29 | ) | ||||
30 | | ||||
31 | ########### install files ############### | ||||
32 | install(TARGETS externaltoolsplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor ) |