Changeset View
Changeset View
Standalone View
Standalone View
addons/tabswitcher/CMakeLists.txt
1 | project(tabswitcherplugin) | 1 | project(tabswitcherplugin) | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"tabswitcherplugin\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"tabswitcherplugin\") | ||
3 | 3 | | |||
4 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | 4 | include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) | ||
5 | 5 | | |||
6 | set(tabswitcherplugin_PART_SRCS | 6 | set(tabswitcherplugin_PART_SRCS | ||
7 | tabswitcher.cpp | 7 | tabswitcher.cpp | ||
8 | tabswitcherfilesmodel.cpp | ||||
8 | tabswitchertreeview.cpp | 9 | tabswitchertreeview.cpp | ||
9 | ) | 10 | ) | ||
10 | 11 | | |||
11 | # resource for ui file and stuff | 12 | # resource for ui file and stuff | ||
12 | qt5_add_resources(tabswitcherplugin_PART_SRCS plugin.qrc) | 13 | qt5_add_resources(tabswitcherplugin_PART_SRCS plugin.qrc) | ||
13 | 14 | | |||
14 | add_library (tabswitcherplugin MODULE ${tabswitcherplugin_PART_SRCS}) | 15 | add_library (tabswitcherplugin MODULE ${tabswitcherplugin_PART_SRCS}) | ||
15 | 16 | | |||
16 | kcoreaddons_desktop_to_json (tabswitcherplugin tabswitcherplugin.desktop) | 17 | kcoreaddons_desktop_to_json (tabswitcherplugin tabswitcherplugin.desktop) | ||
17 | 18 | | |||
18 | target_link_libraries(tabswitcherplugin | 19 | target_link_libraries(tabswitcherplugin | ||
19 | KF5::TextEditor | 20 | KF5::TextEditor | ||
20 | KF5::IconThemes | 21 | KF5::IconThemes | ||
21 | KF5::I18n | 22 | KF5::I18n | ||
22 | KF5::Service | 23 | KF5::Service | ||
23 | ) | 24 | ) | ||
24 | 25 | | |||
25 | install(TARGETS tabswitcherplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) | 26 | install(TARGETS tabswitcherplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor) | ||
27 | | ||||
28 | ############# unit tests ################ | ||||
29 | if (BUILD_TESTING) | ||||
30 | add_subdirectory(autotests) | ||||
31 | endif() |