<commit_before>
add_subdirectory( common )
add_subdirectory( interfaces ) 
add_subdirectory( printing ) 
add_subdirectory( editors ) 
add_subdirectory( views ) 
add_subdirectory( features ) 
add_subdirectory( kcmconfigs ) 
add_subdirectory( xxport ) 
add_subdirectory( pics ) 
add_subdirectory( csv-templates ) 
add_subdirectory( thumbnailcreator ) 

include_directories( 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces 
	${CMAKE_CURRENT_SOURCE_DIR}/features 
	${CMAKE_CURRENT_SOURCE_DIR}/views 
	${CMAKE_CURRENT_SOURCE_DIR}/printing 
	${CMAKE_CURRENT_SOURCE_DIR}/common 
	${CMAKE_CURRENT_SOURCE_DIR}/editors 
	${CMAKE_SOURCE_DIR}/akregator/src )


set(libkabcommon_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/common/kabprefs.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/common/locationmap.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/common/filter.cpp
	)

kde4_add_kcfg_files(libkabcommon_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/common/kabprefs_base.kcfgc )

set(libkabinterfaces_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/configurewidget.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/contacteditorwidget.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/core.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/extensionwidget.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/xxport.cpp
)


set(libprinter_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/printing/detailledstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/kabentrypainter.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/mikesstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/ringbinderstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printingwizard.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printprogress.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/selectionpage.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/stylepage.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printsortmode.cpp
)
MACRO_ADD_FILE_DEPENDENCIES(${CMAKE_CURRENT_SOURCE_DIR}/printing/detailledstyle.cpp ${CMAKE_CURRENT_BINARY_DIR}/ui_ds_appearance.h ${CMAKE_CURRENT_BINARY_DIR}/ui_rbs_appearance.h)

kde4_add_ui_files(libprinter_SRCS
        ${CMAKE_CURRENT_SOURCE_DIR}/printing/ds_appearance.ui
	${CMAKE_CURRENT_SOURCE_DIR}/printing/rbs_appearance.ui
)

set(libkabim_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/editors/imeditorwidget.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/editors/imaddresswidget.cpp
)

kde4_add_ui3_files(libkabim_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/editors/imeditorbase.ui
    ${CMAKE_CURRENT_SOURCE_DIR}/editors/imaddressbase.ui
)


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

set(kaddressbook_bin_SRCS
	main.cpp 
	kaddressbookmain.cpp 
	)

#kde4_add_kcfg_files(kaddressbook_bin_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/common/kabprefs_base.kcfgc )

kde4_automoc(${kaddressbook_bin_SRCS})

kde4_add_dcop_skels(kaddressbook_bin_SRCS kaddressbookiface.h )

kde4_add_executable(kaddressbook_bin ${kaddressbook_bin_SRCS})
set_target_properties(kaddressbook_bin PROPERTIES OUTPUT_NAME kaddressbook)

target_link_libraries(kaddressbook_bin  ${KDE4_KDECORE_LIBS} kaddressbook khtml)

install_targets(/bin kaddressbook_bin )


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

set(kaddressbookpart_PART_SRCS kaddressbook_part.cpp )

kde4_add_dcop_skels(kaddressbookpart_PART_SRCS kaddressbookiface.h)

kde4_automoc(${kaddressbookpart_PART_SRCS})

kde4_add_plugin(kaddressbookpart WITH_PREFIX ${kaddressbookpart_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kaddressbookpart )

target_link_libraries(kaddressbookpart  ${KDE4_KDECORE_LIBS} kaddressbook )

install_targets(${PLUGIN_INSTALL_DIR} kaddressbookpart )


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

set(kaddressbook_LIB_SRCS ${libkabinterfaces_SRCS} ${libprinter_SRCS} ${libkabim_SRCS}
                          ${libkabcommon_SRCS}
	addresseeconfig.cpp
   addresseeeditordialog.cpp
   addresseeeditorwidget.cpp
   addresseeeditorbase.cpp
   addresseeeditorextension.cpp
   addresseeutil.cpp
   addresseditwidget.cpp
   addviewdialog.cpp
   emaileditwidget.cpp
   extensionmanager.cpp
   filtereditdialog.cpp
   filterselectionwidget.cpp
   geowidget.cpp
   imagewidget.cpp
   incsearchwidget.cpp
   jumpbuttonbar.cpp
   kabcore.cpp
   kablock.cpp
   kaddressbookservice.cpp
   kaddressbookview.cpp
   keywidget.cpp
   ldapsearchdialog.cpp
   nameeditdialog.cpp
   phoneeditwidget.cpp
   secrecywidget.cpp
   soundwidget.cpp
   viewconfigurefieldspage.cpp
   viewconfigurefilterpage.cpp
   viewconfigurewidget.cpp
   undocmds.cpp
   viewmanager.cpp
   xxportmanager.cpp
   xxportselectdialog.cpp
   contacteditorwidgetmanager.cpp
   simpleaddresseeeditor.cpp
   advancedcustomfields.cpp
   customfieldswidget.cpp
   freebusywidget.cpp
   searchmanager.cpp
   imeditwidget.cpp
   kabtools.cpp 
)

kde4_automoc(${kaddressbook_LIB_SRCS})

kde4_add_library(kaddressbook SHARED ${kaddressbook_LIB_SRCS})

target_link_libraries(kaddressbook  ${KDE4_KDECORE_LIBS} syndication kdepim kcal kabc_file kdeprint phononcore )

set_target_properties(kaddressbook PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install_targets(${LIB_INSTALL_DIR} kaddressbook )


########### install files ###############

install_files( ${XDG_APPS_DIR} FILES kaddressbook.desktop )
install_files( ${DATA_INSTALL_DIR}/kaddressbook FILES zone.tab )<commit_msg>link again, you'll need the latest snapshot for this.<commit_after>
add_subdirectory( common )
add_subdirectory( interfaces ) 
add_subdirectory( printing ) 
add_subdirectory( editors ) 
add_subdirectory( views ) 
add_subdirectory( features ) 
add_subdirectory( kcmconfigs ) 
add_subdirectory( xxport ) 
add_subdirectory( pics ) 
add_subdirectory( csv-templates ) 
add_subdirectory( thumbnailcreator ) 

include_directories( 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces 
	${CMAKE_CURRENT_SOURCE_DIR}/features 
	${CMAKE_CURRENT_SOURCE_DIR}/views 
	${CMAKE_CURRENT_SOURCE_DIR}/printing 
	${CMAKE_CURRENT_SOURCE_DIR}/common 
	${CMAKE_CURRENT_SOURCE_DIR}/editors 
	${CMAKE_SOURCE_DIR}/akregator/src )


set(libkabcommon_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/common/kabprefs.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/common/locationmap.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/common/filter.cpp
	)

kde4_add_kcfg_files(libkabcommon_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/common/kabprefs_base.kcfgc )

set(libkabinterfaces_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/configurewidget.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/contacteditorwidget.cpp
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/core.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/extensionwidget.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/interfaces/xxport.cpp
)


set(libprinter_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/printing/detailledstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/kabentrypainter.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/mikesstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/ringbinderstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printingwizard.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printprogress.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printstyle.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/selectionpage.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/stylepage.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/printing/printsortmode.cpp
)
MACRO_ADD_FILE_DEPENDENCIES(${CMAKE_CURRENT_SOURCE_DIR}/printing/detailledstyle.cpp ${CMAKE_CURRENT_BINARY_DIR}/ui_ds_appearance.h ${CMAKE_CURRENT_BINARY_DIR}/ui_rbs_appearance.h)

kde4_add_ui_files(libprinter_SRCS
        ${CMAKE_CURRENT_SOURCE_DIR}/printing/ds_appearance.ui
	${CMAKE_CURRENT_SOURCE_DIR}/printing/rbs_appearance.ui
)

set(libkabim_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/editors/imeditorwidget.cpp 
	${CMAKE_CURRENT_SOURCE_DIR}/editors/imaddresswidget.cpp
)

kde4_add_ui3_files(libkabim_SRCS
	${CMAKE_CURRENT_SOURCE_DIR}/editors/imeditorbase.ui
    ${CMAKE_CURRENT_SOURCE_DIR}/editors/imaddressbase.ui
)


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

set(kaddressbook_bin_SRCS
	main.cpp 
	kaddressbookmain.cpp 
	)

#kde4_add_kcfg_files(kaddressbook_bin_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/common/kabprefs_base.kcfgc )

kde4_automoc(${kaddressbook_bin_SRCS})

kde4_add_dcop_skels(kaddressbook_bin_SRCS kaddressbookiface.h )

kde4_add_executable(kaddressbook_bin ${kaddressbook_bin_SRCS})
set_target_properties(kaddressbook_bin PROPERTIES OUTPUT_NAME kaddressbook)

target_link_libraries(kaddressbook_bin  ${KDE4_KDECORE_LIBS} kaddressbook khtml)

install_targets(/bin kaddressbook_bin )


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

set(kaddressbookpart_PART_SRCS kaddressbook_part.cpp )

kde4_add_dcop_skels(kaddressbookpart_PART_SRCS kaddressbookiface.h)

kde4_automoc(${kaddressbookpart_PART_SRCS})

kde4_add_plugin(kaddressbookpart WITH_PREFIX ${kaddressbookpart_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kaddressbookpart )

target_link_libraries(kaddressbookpart  ${KDE4_KDECORE_LIBS} kaddressbook )

install_targets(${PLUGIN_INSTALL_DIR} kaddressbookpart )


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

set(kaddressbook_LIB_SRCS ${libkabinterfaces_SRCS} ${libprinter_SRCS} ${libkabim_SRCS}
                          ${libkabcommon_SRCS}
	addresseeconfig.cpp
   addresseeeditordialog.cpp
   addresseeeditorwidget.cpp
   addresseeeditorbase.cpp
   addresseeeditorextension.cpp
   addresseeutil.cpp
   addresseditwidget.cpp
   addviewdialog.cpp
   emaileditwidget.cpp
   extensionmanager.cpp
   filtereditdialog.cpp
   filterselectionwidget.cpp
   geowidget.cpp
   imagewidget.cpp
   incsearchwidget.cpp
   jumpbuttonbar.cpp
   kabcore.cpp
   kablock.cpp
   kaddressbookservice.cpp
   kaddressbookview.cpp
   keywidget.cpp
   ldapsearchdialog.cpp
   nameeditdialog.cpp
   phoneeditwidget.cpp
   secrecywidget.cpp
   soundwidget.cpp
   viewconfigurefieldspage.cpp
   viewconfigurefilterpage.cpp
   viewconfigurewidget.cpp
   undocmds.cpp
   viewmanager.cpp
   xxportmanager.cpp
   xxportselectdialog.cpp
   contacteditorwidgetmanager.cpp
   simpleaddresseeeditor.cpp
   advancedcustomfields.cpp
   customfieldswidget.cpp
   freebusywidget.cpp
   searchmanager.cpp
   imeditwidget.cpp
   kabtools.cpp 
)

kde4_automoc(${kaddressbook_LIB_SRCS})

kde4_add_library(kaddressbook SHARED ${kaddressbook_LIB_SRCS})

target_link_libraries(kaddressbook  ${KDE4_KDECORE_LIBS} syndication kdepim kcal kabc_file_core kdeprint phononcore )

set_target_properties(kaddressbook PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install_targets(${LIB_INSTALL_DIR} kaddressbook )


########### install files ###############

install_files( ${XDG_APPS_DIR} FILES kaddressbook.desktop )
install_files( ${DATA_INSTALL_DIR}/kaddressbook FILES zone.tab )
{'fraction_non_alphanumeric': 0.09706024096385542, 'fraction_numerical': 0.004048192771084337, 'mean_word_length': 7.0684292379471225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '488990', 'n_tokens_mistral': 3920, 'n_tokens_neox': 3766, 'n_words': 376}