
include_directories( ${KWMF_INCLUDES} )

add_definitions(-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)

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

set(mswriteimport_PART_SRCS 
   mswriteimport.cc 
   libmswrite_defs.cpp 
   structures_generated.cpp 
   structures_private.cpp 
   structures.cpp 
   libmswrite.cpp 
   ImportDialog.cc )

kde4_add_ui3_files(mswriteimport_PART_SRCS ImportDialogUI.ui )

kde4_add_plugin(mswriteimport ${mswriteimport_PART_SRCS})



target_link_libraries(mswriteimport komain ${QT_QT3SUPPORT_LIBRARY})

install(TARGETS mswriteimport  DESTINATION ${PLUGIN_INSTALL_DIR})


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

set(mswriteexport_PART_SRCS 
   mswriteexport.cc 
   libmswrite_defs.cpp 
   structures_generated.cpp 
   structures_private.cpp 
   structures.cpp 
   libmswrite.cpp )

kde4_add_plugin(mswriteexport ${mswriteexport_PART_SRCS})



target_link_libraries(mswriteexport kowmf kwordexportfilters)

install(TARGETS mswriteexport  DESTINATION ${PLUGIN_INSTALL_DIR})


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

install( FILES  kword_mswrite_import.desktop kword_mswrite_export.desktop  DESTINATION ${SERVICES_INSTALL_DIR})


