
include_directories(${IMLIB_INCLUDE_DIR})

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

set(kuickshow_KDEINIT_SRCS 
   kuickshow.cpp 
   aboutwidget.cpp 
   generalwidget.cpp 
   kuickconfigdlg.cpp 
   main.cpp 
   defaultswidget.cpp 
   imagewindow.cpp 
   kuickdata.cpp 
   imdata.cpp 
   filefinder.cpp 
   kurlwidget.cpp 
   filewidget.cpp 
   kuickio.cpp 
   kuick.cpp 
   imlibwidget.cpp 
   slideshowwidget.cpp 
   printing.cpp )

kde4_automoc(${kuickshow_KDEINIT_SRCS})

kde4_add_kdeinit_executable( kuickshow ${kuickshow_KDEINIT_SRCS})

target_link_libraries(kdeinit_kuickshow ${IMLIB_LIBRARIES} ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KDEPRINT_LIBS} )

install(TARGETS kdeinit_kuickshow  DESTINATION ${LIB_INSTALL_DIR} )

target_link_libraries( kuickshow kdeinit_kuickshow )
install(TARGETS kuickshow  DESTINATION ${BIN_INSTALL_DIR} )

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

install( FILES kuickshow.desktop  DESTINATION  ${XDG_APPS_DIR} )

kde4_install_icons( ${ICON_INSTALL_DIR}   )




#original Makefile.am contents follow:

### Makefile.am for kuickshow
#
#bin_PROGRAMS =
#lib_LTLIBRARIES =
#kdeinit_LTLIBRARIES = kuickshow.la
#
## set the include path for X, qt and KDE
#INCLUDES = $(all_includes)
#KDE_CXXFLAGS = $(IMLIB_CFLAGS)
#METASOURCES = AUTO
#
#kuickshow_la_LDFLAGS = $(all_libraries) -module -avoid-version
#kuickshow_la_LIBADD  = $(LIB_KDEPRINT) $(LIB_IMLIB)
#kuickshow_la_SOURCES =	kuickshow.cpp \
#	aboutwidget.cpp     generalwidget.cpp  kuickconfigdlg.cpp  main.cpp \
#	defaultswidget.cpp  imagewindow.cpp    kuickdata.cpp  \
#	imdata.cpp filefinder.cpp kurlwidget.cpp filewidget.cpp \
#	kuickio.cpp kuick.cpp imlibwidget.cpp slideshowwidget.cpp printing.cpp
#
## if you "make distclean", this files get removed. If you want to remove
## them while "make clean", use CLEANFILES
#DISTCLEANFILES = $(METASOURCES)
#
#messages:
#	$(XGETTEXT) *.cpp *.h -o $(podir)/kuickshow.pot
#
#KDE_ICON = kuickshow
#
# # this is where the kdelnk file will go 
#xdg_apps_DATA = kuickshow.desktop
