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