



set(libfeatureplancommon_SRCS)

kode_add_xml_parser(libfeatureplancommon_SRCS kde-features.rng)
kde4_add_kcfg_files(libfeatureplancommon_SRCS prefs.kcfgc )

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

set(kcal_resourcefeatureplan_LIB_SRCS ${libfeatureplancommon_SRCS} kcal_resourcefeatureplan.cpp kcal_resourcefeatureplanconfig.cpp )

kde4_automoc(${kcal_resourcefeatureplan_LIB_SRCS})

kde4_add_library(kcal_resourcefeatureplan SHARED ${kcal_resourcefeatureplan_LIB_SRCS})

target_link_libraries(kcal_resourcefeatureplan  ${KDE4_KDECORE_LIBS} ${KDE4_KCAL_LIBS} kdepim)

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


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


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

set(kcal_resourcefeatureplan_PART_SRCS kcal_resourcefeatureplanplugin.cpp ${kcal_resourcefeatureplan_LIB_SRCS} ${libfeatureplancommon_SRCS})

kde4_automoc(${kcal_resourcefeatureplan_PART_SRCS})

kde4_add_plugin(kcal_resourcefeatureplan ${kcal_resourcefeatureplan_PART_SRCS})



target_link_libraries(kcal_resourcefeatureplan  ${KDE4_KDECORE_LIBS} )

install(TARGETS kcal_resourcefeatureplan  DESTINATION ${PLUGIN_INSTALL_DIR})


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

if(KDE4_BUILD_TESTS)
set(dumpfeaturelist_SRCS dumpfeaturelist.cpp ${libfeatureplancommon_SRCS})

kde4_automoc(${dumpfeaturelist_SRCS})


kde4_add_executable(dumpfeaturelist ${dumpfeaturelist_SRCS})

target_link_libraries(dumpfeaturelist  ${KDE4_KDECORE_LIBS} )


########### next target ###############
set(benchmarkfeaturelist_SRCS benchmarkfeaturelist.cpp ${libfeatureplancommon_SRCS})

kde4_automoc(${benchmarkfeaturelist_SRCS})


kde4_add_executable(benchmarkfeaturelist ${benchmarkfeaturelist_SRCS})

target_link_libraries(benchmarkfeaturelist  ${KDE4_KDECORE_LIBS})

endif(KDE4_BUILD_TESTS)

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

install( FILES kcal_resourcefeatureplan.desktop  DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kcal)
