<commit_before>
add_subdirectory( private ) 
add_subdirectory( ui ) 
add_subdirectory( avdevice ) 

include_directories( ${KOPETE_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR}/private ${CMAKE_CURRENT_SOURCE_DIR}/ui ${CMAKE_CURRENT_BINARY_DIR}/ui )

if(X11_Xrender_FOUND)
  include_directories(${X11_Xrender_INCLUDE_PATH})
endif(X11_Xrender_FOUND)

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

set(kopete_private_SRCS 
  private/kopeteemoticons.cpp 
  private/kopeteviewmanager.cpp 
  private/kopeteutils_private.cpp
)

set(kopete_ui_SRCS 
  ui/kopetecontactaction.cpp 
  ui/addcontactpage.cpp 
  ui/editaccountwidget.cpp 
  ui/kopetestdaction.cpp 
  ui/kopetefileconfirmdialog.cpp 
  ui/kopeteview.cpp 
  ui/kopetepasswordwidget.cpp 
  ui/accountselector.cpp 
  ui/kopeteviewplugin.cpp 
  ui/addresseeitem.cpp 
  ui/addressbookselectordialog.cpp 
  ui/addressbookselectorwidget.cpp  
  ui/metacontactselectorwidget.cpp 
  ui/kopetelistview.cpp 
  ui/kopetelistviewitem.cpp 
  ui/kopetelistviewsearchline.cpp 
  ui/contactaddednotifydialog.cpp 
  ui/addressbooklinkwidget.cpp
  ui/webcamwidget.cpp 
)

set(kopete_contactliststorage_SRCS
  contactliststorage/xmlcontactstorage.cpp 
)

set(kopete_LIB_SRCS 
   ${kopete_private_SRCS} 
   ${kopete_ui_SRCS} 
   ${kopete_contactliststorage_SRCS}
   kopeteonlinestatus.cpp 
   kopeteonlinestatusmanager.cpp 
   kopeteprotocol.cpp 
   kopetecontact.cpp 
   kopetepluginmanager.cpp 
   kopeteplugin.cpp 
   kopetemessage.cpp 
   kopetechatsession.cpp 
   kopetechatsessionmanager.cpp 
   kopetecontactlist.cpp 
   kopetecontactliststorage.cpp 
   kopetemetacontact.cpp 
   kopetetransfermanager.cpp 
   kopetegroup.cpp 
   kopeteaccountmanager.cpp 
   kopeteaccount.cpp 
   kopetecontactlistelement.cpp 
   kopetecommand.cpp 
   kopetecommandhandler.cpp 
   kopeteaway.cpp 
   kopeteawayaction.cpp 
   kopetewalletmanager.cpp 
   kopetecontactproperty.cpp 
   kopetepassword.cpp 
   kopeteglobal.cpp 
   kopeteuiglobal.cpp 
   kopetepasswordedaccount.cpp 
   kopetemimetypehandler.cpp 
   kopetetask.cpp 
   kopetemimesourcefactory.cpp 
   kopeteblacklister.cpp 
   kopetemessageevent.cpp 
   kopetemessagehandler.cpp 
   kopetemessagehandlerchain.cpp 
   kopetesimplemessagehandler.cpp 
   kopeteproperties.cpp 
   kabcpersistence.cpp 
   networkstatuscommon.h 
   kopeteutils.cpp 
   kopetepicture.cpp 
   kopetestatusmessage.cpp 

# REMOVED FOR NOW
#   connectionmanager.cpp 
#   managedconnectionaccount.cpp 

)


kde4_add_ui_files(kopete_LIB_SRCS
    ui/kopetepassworddialog.ui
    ui/metacontactselectorwidget_base.ui
    ui/fileconfirmbase.ui
    ui/kopetepasswordwidgetbase.ui
    ui/contactaddednotifywidget.ui 
    ui/addressbookselectorwidget_base.ui
    ui/addressbooklinkwidget_base.ui
    ui/kopeteawaydialogbase.ui )

kde4_automoc(${kopete_LIB_SRCS})

kde4_add_kcfg_files(kopete_LIB_SRCS kopetegeneralsettings.kcfgc kopeteappearancesettings.kcfgc kopetebehaviorsettings.kcfgc )

kde4_add_library(kopete SHARED ${kopete_LIB_SRCS})

target_link_libraries(kopete ${KDE4_KDE3SUPPORT_LIBS} kabc ${X11_Xss_LIB} )

if(X11_Xrender_FOUND)
  target_link_libraries(kopete ${X11_Xrender_LIB})
endif(X11_Xrender_FOUND)

set_target_properties(kopete PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kopete  DESTINATION ${LIB_INSTALL_DIR})


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

install( FILES kopetegeneralsettings.kcfg kopeteappearancesettings.kcfg kopetebehaviorsettings.kcfg  DESTINATION ${KCFG_INSTALL_DIR})
install( FILES kopetecommandui.rc  DESTINATION ${DATA_INSTALL_DIR}/kopete)<commit_msg>Use new GENERATE_MOC keyword for kde4_add_kcfg_files<commit_after>
add_subdirectory( private ) 
add_subdirectory( ui ) 
add_subdirectory( avdevice ) 

include_directories( ${KOPETE_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR}/private ${CMAKE_CURRENT_SOURCE_DIR}/ui ${CMAKE_CURRENT_BINARY_DIR}/ui )

if(X11_Xrender_FOUND)
  include_directories(${X11_Xrender_INCLUDE_PATH})
endif(X11_Xrender_FOUND)

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

set(kopete_private_SRCS 
  private/kopeteemoticons.cpp 
  private/kopeteviewmanager.cpp 
  private/kopeteutils_private.cpp
)

set(kopete_ui_SRCS 
  ui/kopetecontactaction.cpp 
  ui/addcontactpage.cpp 
  ui/editaccountwidget.cpp 
  ui/kopetestdaction.cpp 
  ui/kopetefileconfirmdialog.cpp 
  ui/kopeteview.cpp 
  ui/kopetepasswordwidget.cpp 
  ui/accountselector.cpp 
  ui/kopeteviewplugin.cpp 
  ui/addresseeitem.cpp 
  ui/addressbookselectordialog.cpp 
  ui/addressbookselectorwidget.cpp  
  ui/metacontactselectorwidget.cpp 
  ui/kopetelistview.cpp 
  ui/kopetelistviewitem.cpp 
  ui/kopetelistviewsearchline.cpp 
  ui/contactaddednotifydialog.cpp 
  ui/addressbooklinkwidget.cpp
  ui/webcamwidget.cpp 
)

set(kopete_contactliststorage_SRCS
  contactliststorage/xmlcontactstorage.cpp 
)

set(kopete_LIB_SRCS 
   ${kopete_private_SRCS} 
   ${kopete_ui_SRCS} 
   ${kopete_contactliststorage_SRCS}
   kopeteonlinestatus.cpp 
   kopeteonlinestatusmanager.cpp 
   kopeteprotocol.cpp 
   kopetecontact.cpp 
   kopetepluginmanager.cpp 
   kopeteplugin.cpp 
   kopetemessage.cpp 
   kopetechatsession.cpp 
   kopetechatsessionmanager.cpp 
   kopetecontactlist.cpp 
   kopetecontactliststorage.cpp 
   kopetemetacontact.cpp 
   kopetetransfermanager.cpp 
   kopetegroup.cpp 
   kopeteaccountmanager.cpp 
   kopeteaccount.cpp 
   kopetecontactlistelement.cpp 
   kopetecommand.cpp 
   kopetecommandhandler.cpp 
   kopeteaway.cpp 
   kopeteawayaction.cpp 
   kopetewalletmanager.cpp 
   kopetecontactproperty.cpp 
   kopetepassword.cpp 
   kopeteglobal.cpp 
   kopeteuiglobal.cpp 
   kopetepasswordedaccount.cpp 
   kopetemimetypehandler.cpp 
   kopetetask.cpp 
   kopetemimesourcefactory.cpp 
   kopeteblacklister.cpp 
   kopetemessageevent.cpp 
   kopetemessagehandler.cpp 
   kopetemessagehandlerchain.cpp 
   kopetesimplemessagehandler.cpp 
   kopeteproperties.cpp 
   kabcpersistence.cpp 
   networkstatuscommon.h 
   kopeteutils.cpp 
   kopetepicture.cpp 
   kopetestatusmessage.cpp 

# REMOVED FOR NOW
#   connectionmanager.cpp 
#   managedconnectionaccount.cpp 

)


kde4_add_ui_files(kopete_LIB_SRCS
    ui/kopetepassworddialog.ui
    ui/metacontactselectorwidget_base.ui
    ui/fileconfirmbase.ui
    ui/kopetepasswordwidgetbase.ui
    ui/contactaddednotifywidget.ui 
    ui/addressbookselectorwidget_base.ui
    ui/addressbooklinkwidget_base.ui
    ui/kopeteawaydialogbase.ui )

kde4_automoc(${kopete_LIB_SRCS})

kde4_add_kcfg_files(kopete_LIB_SRCS GENERATE_MOC kopetegeneralsettings.kcfgc kopeteappearancesettings.kcfgc kopetebehaviorsettings.kcfgc )

kde4_add_library(kopete SHARED ${kopete_LIB_SRCS})

target_link_libraries(kopete ${KDE4_KDE3SUPPORT_LIBS} kabc ${X11_Xss_LIB} )

if(X11_Xrender_FOUND)
  target_link_libraries(kopete ${X11_Xrender_LIB})
endif(X11_Xrender_FOUND)

set_target_properties(kopete PROPERTIES VERSION 1.0.0 SOVERSION 1 )
install(TARGETS kopete  DESTINATION ${LIB_INSTALL_DIR})


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

install( FILES kopetegeneralsettings.kcfg kopeteappearancesettings.kcfg kopetebehaviorsettings.kcfg  DESTINATION ${KCFG_INSTALL_DIR})
install( FILES kopetecommandui.rc  DESTINATION ${DATA_INSTALL_DIR}/kopete)
{'fraction_non_alphanumeric': 0.07571508693213685, 'fraction_numerical': 0.006870443073471677, 'mean_word_length': 4.979044425817268, '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': '2725888', 'n_tokens_mistral': 2908, 'n_tokens_neox': 2721, 'n_words': 289}