CMakeLists.txt 748 Bytes
Newer Older
1
add_library(katebacktracebrowserplugin MODULE "")
2
target_compile_definitions(katebacktracebrowserplugin PRIVATE TRANSLATION_DOMAIN="katebacktracebrowserplugin")
3
target_link_libraries(katebacktracebrowserplugin PRIVATE KF5::TextEditor)
4

5 6
ki18n_wrap_ui(UI_SOURCES btbrowserwidget.ui btconfigwidget.ui)
target_sources(katebacktracebrowserplugin PRIVATE ${UI_SOURCES})
7 8 9 10 11 12 13 14 15 16

target_sources(
  katebacktracebrowserplugin
  PRIVATE
    katebacktracebrowser.cpp
    btparser.cpp
    btfileindexer.cpp
    btdatabase.cpp
)

17 18
kcoreaddons_desktop_to_json(katebacktracebrowserplugin katebacktracebrowserplugin.desktop)
install(TARGETS katebacktracebrowserplugin DESTINATION ${PLUGIN_INSTALL_DIR}/ktexteditor)
19

20 21
if(BUILD_TESTING)
  add_subdirectory(autotests)
Heiko Becker's avatar
Heiko Becker committed
22
endif()