
add_subdirectory( pics )

include_directories(
   ${quanta_SOURCE_DIR}/lib
   ${quanta_BINARY_DIR}/lib
   ${KDEVPLATFORM_INCLUDE_DIR}
   ${KDEVPLATFORM_INCLUDE_DIR}/interfaces
   ${KDEVPLATFORM_INCLUDE_DIR}/shell
   )


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

set(kdevcreatequantaproject_PART_SRCS 
   createquantaprojectpart.cpp 
   simplefiletree.cpp 
   simpletreeviewitem.cpp 
   firstwizardpage.cpp 
   localimportwizardpage.cpp 
   secondwizardpage.cpp 
   webimportwizardpage.cpp )


kde4_add_ui_files(kdevcreatequantaproject_PART_SRCS
   firstwizardpagebase.ui 
   localimportwizardpagebase.ui 
   secondwizardpagebase.ui 
   webimportwizardpagebase.ui
)

kde4_add_plugin(kdevcreatequantaproject WITH_PREFIX ${kdevcreatequantaproject_PART_SRCS})



target_link_libraries(kdevcreatequantaproject kdevquanta ${KDEVPLATFORM_INTERFACES_LIBRARIES} ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${KDEVPLATFORM_SHELL_LIBRARIES})

install(TARGETS kdevcreatequantaproject  DESTINATION ${PLUGIN_INSTALL_DIR})


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

install( FILES   DESTINATION ${DATA_INSTALL_DIR}/kdevcreatequantaproject)
install( FILES  kdevcreatequantaproject.desktop  DESTINATION ${SERVICES_INSTALL_DIR})
install( FILES  kdevcreatequantaproject.rc quanta-project.template  DESTINATION ${DATA_INSTALL_DIR}/kdevcreatequantaproject)




#original Makefile.am contents follow:

#INCLUDES = -I$(top_srcdir)/lib -I$(top_builddir)/lib \
#	-I$(kde_includes)/kdevplatform/interfaces -I$(kde_includes)/kdevplatform/util $(all_includes)
#
#kde_module_LTLIBRARIES = libkdevcreatequantaproject.la
#libkdevcreatequantaproject_la_LDFLAGS = -L$(top_builddir)/lib -avoid-version -module -no-undefined \
#	$(all_libraries) $(KDE_PLUGIN)
#libkdevcreatequantaproject_la_LIBADD = -lkdevplatform -lkdevquanta
#libkdevcreatequantaproject_la_SOURCES = createquantaprojectpart.cpp \
#	simplefiletree.cpp simpletreeviewitem.cpp firstwizardpagebase.ui firstwizardpage.cpp \
#	localimportwizardpagebase.ui localimportwizardpage.cpp secondwizardpagebase.ui secondwizardpage.cpp \
#	webimportwizardpagebase.ui webimportwizardpage.cpp
#
#METASOURCES = AUTO
#
#servicedir = $(kde_servicesdir)
#service_DATA = kdevcreatequantaproject.desktop
#
#rcdir = $(kde_datadir)/kdevcreatequantaproject
#rc_DATA = kdevcreatequantaproject.rc quanta-project.template
#
#appsharedir = $(kde_datadir)/kdevcreatequantaproject
#appshare_DATA =
#noinst_HEADERS = simplefiletree.h simpletreeviewitem.h firstwizardpage.h \
#	localimportwizardpage.h secondwizardpage.h webimportwizardpage.h
#
#SUBDIRS = pics
