<commit_before>
include_directories(
	${CMAKE_SOURCE_DIR}/kontact/interfaces
	${CMAKE_SOURCE_DIR}/kmail
	${CMAKE_BINARY_DIR}/kmail
	${CMAKE_SOURCE_DIR}/libkdepim
	
)

########### next target ###############

set(kontact_kmailplugin_PART_SRCS kmail_plugin.cpp summarywidget.cpp )

kde4_automoc(${kontact_kmailplugin_PART_SRCS})

#kde4_add_dcop_skels(kontact_kmailplugin_PART_SRCS summarywidget.h )

#uncomment once kmail has a proper dbus interface
#qt4_add_dbus_interface(kontact_kmailplugin_PART_SRCS ${CMAKE_SOURCE_DIR}/kmail/org.kde.kmail.kmailiface.xml )

kde4_add_plugin(kontact_kmailplugin WITH_PREFIX ${kontact_kmailplugin_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kontact_kmailplugin )

target_link_libraries(kontact_kmailplugin ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS} kpinterfaces ${KDE4_KCAL_LIBS})

install(TARGETS kontact_kmailplugin  DESTINATION ${PLUGIN_INSTALL_DIR})

set_source_files_properties( kmail_plugin.cpp OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/kmail/globalsettings_base.h )

ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_BINARY_DIR}/kmail/globalsettings_base.h
	COMMAND make -C ${CMAKE_BINARY_DIR}/kmail globalsettings_base.o )

########### next target ###############

set(kcm_kmailsummary_PART_SRCS kcmkmailsummary.cpp )

kde4_automoc(${kcm_kmailsummary_PART_SRCS})

kde4_add_plugin(kcm_kmailsummary ${kcm_kmailsummary_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_kmailsummary )

target_link_libraries(kcm_kmailsummary  ${KDE4_KDEUI_LIBS} )<commit_msg>that doesn't work either ;(<commit_after>
include_directories(
	${CMAKE_SOURCE_DIR}/kontact/interfaces
	${CMAKE_SOURCE_DIR}/kmail
	${CMAKE_BINARY_DIR}/kmail
	${CMAKE_SOURCE_DIR}/libkdepim
	
)

########### next target ###############

set(kontact_kmailplugin_PART_SRCS kmail_plugin.cpp summarywidget.cpp )

kde4_automoc(${kontact_kmailplugin_PART_SRCS})

#kde4_add_dcop_skels(kontact_kmailplugin_PART_SRCS summarywidget.h )

#uncomment once kmail has a proper dbus interface
#qt4_add_dbus_interface(kontact_kmailplugin_PART_SRCS ${CMAKE_SOURCE_DIR}/kmail/org.kde.kmail.kmailiface.xml )

kde4_add_plugin(kontact_kmailplugin WITH_PREFIX ${kontact_kmailplugin_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kontact_kmailplugin )

target_link_libraries(kontact_kmailplugin ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS} kpinterfaces ${KDE4_KCAL_LIBS})

install(TARGETS kontact_kmailplugin  DESTINATION ${PLUGIN_INSTALL_DIR})

########### next target ###############

set(kcm_kmailsummary_PART_SRCS kcmkmailsummary.cpp )

kde4_automoc(${kcm_kmailsummary_PART_SRCS})

kde4_add_plugin(kcm_kmailsummary ${kcm_kmailsummary_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_kmailsummary )

target_link_libraries(kcm_kmailsummary  ${KDE4_KDEUI_LIBS} )
{'fraction_non_alphanumeric': 0.11705202312138728, 'fraction_numerical': 0.008670520231213872, 'mean_word_length': 10.987012987012987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1769336', 'n_tokens_mistral': 1145, 'n_tokens_neox': 1132, 'n_words': 117}