Changeset View
Changeset View
Standalone View
Standalone View
addons/filebrowser/CMakeLists.txt
1 | project(katefilebrowserplugin) | | |||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"katefilebrowserplugin\") | | |||
3 | | ||||
4 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | | |||
5 | | ||||
6 | set(katefilebrowserplugin_PART_SRCS | 1 | set(katefilebrowserplugin_PART_SRCS | ||
7 | katefilebrowserplugin.cpp | 2 | katefilebrowserplugin.cpp | ||
8 | katefilebrowserconfig.cpp | 3 | katefilebrowserconfig.cpp | ||
9 | katefilebrowser.cpp | 4 | katefilebrowser.cpp | ||
10 | katebookmarkhandler.cpp | 5 | katebookmarkhandler.cpp | ||
11 | ) | 6 | ) | ||
12 | 7 | | |||
13 | add_library(katefilebrowserplugin MODULE ${katefilebrowserplugin_PART_SRCS}) | 8 | add_library(katefilebrowserplugin MODULE ${katefilebrowserplugin_PART_SRCS}) | ||
9 | target_compile_definitions(katefilebrowserplugin PRIVATE TRANSLATION_DOMAIN="katefilebrowserplugin") | ||||
14 | 10 | | |||
15 | # we compile in the .desktop file | 11 | target_link_libraries( | ||
16 | kcoreaddons_desktop_to_json (katefilebrowserplugin katefilebrowserplugin.desktop) | 12 | katefilebrowserplugin | ||
17 | 13 | PRIVATE | |||
18 | target_link_libraries(katefilebrowserplugin KF5::TextEditor KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets KF5::I18n) | 14 | KF5::TextEditor | ||
15 | KF5::KIOCore | ||||
16 | KF5::KIOFileWidgets | ||||
17 | KF5::KIOWidgets | ||||
18 | KF5::I18n | ||||
19 | ) | ||||
19 | 20 | | |||
21 | kcoreaddons_desktop_to_json(katefilebrowserplugin katefilebrowserplugin.desktop) | ||||
20 | install(TARGETS katefilebrowserplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor ) | 22 | install(TARGETS katefilebrowserplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) |