
project(kdeprintfax)



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

set(kdeprintfax_SRCS 
   main.cpp 
   kdeprintfax.cpp 
   faxab.cpp 
   faxctrl.cpp 
   confgeneral.cpp 
   configdlg.cpp 
   conffax.cpp 
   confsystem.cpp 
   conffilters.cpp 
   filterdlg.cpp 
   defcmds.cpp )

kde4_automoc(${kdeprintfax_SRCS})

kde4_add_executable(kdeprintfax ${kdeprintfax_SRCS})

target_link_libraries(kdeprintfax  ${KDE4_KIO_LIBS} ${KDE4_KDEPRINT_LIBS} ${KDE4_KABC_LIBS})

install(TARGETS kdeprintfax DESTINATION ${BIN_INSTALL_DIR})


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

install( FILES kdeprintfax.desktop  DESTINATION  ${XDG_APPS_DIR} )
install( FILES kdeprintfaxui.rc faxfilters  DESTINATION  ${DATA_INSTALL_DIR}/kdeprintfax )

install( FILES anytops  DESTINATION  ${DATA_INSTALL_DIR}/kdeprintfax )
kde4_install_icons( ${ICON_INSTALL_DIR}  )



#original Makefile.am contents follow:

#INCLUDES= $(all_includes)
#
#bin_PROGRAMS = kdeprintfax
#kdeprintfax_SOURCES = main.cpp kdeprintfax.cpp faxab.cpp faxctrl.cpp confgeneral.cpp configdlg.cpp \
#		      conffax.cpp confsystem.cpp conffilters.cpp filterdlg.cpp defcmds.cpp
#kdeprintfax_LDFLAGS = $(all_libraries) $(KDE_RPATH)
#kdeprintfax_LDADD   = $(LIB_KDEUI) $(LIB_KIO) $(LIB_KDEPRINT) -lkabc
#kdeprintfax_METASOURCES = AUTO
#
#xdg_apps_DATA = kdeprintfax.desktop
#
#uidir = $(kde_datadir)/kdeprintfax
#ui_DATA = kdeprintfaxui.rc faxfilters
#
#private_SCRIPTS = anytops
#privatedir = $(kde_datadir)/kdeprintfax
#
#messages: rc.cpp
#	$(XGETTEXT) `find . -name \*.h -o -name \*.cpp -o -name \*.cc` -o $(podir)/kdeprintfax.pot
#
#KDE_ICON = kdeprintfax
#pic_ICON = abentry
#picdir = $(kde_datadir)/kdeprintfax/icons
