include_directories(${CMAKE_SOURCE_DIR}/kst/kst ${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} )

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

set(kstextdate_LIB_SRCS
    kstextdatetime.cpp
    kstextcalendarsystem.cpp
    kstextcalendarsystemgregorian.cpp
    kstextdatetbl.cpp
    kstextdatepicker.cpp
    kstextdatetimeedit.cpp
    kstextdatewidget.cpp)

KDE3_AUTOMOC(${kstextdate_LIB_SRCS})

ADD_LIBRARY(kstextdate SHARED ${kstextdate_LIB_SRCS})

target_link_libraries(kstextdate ${KDE3_KDECORE_LIBS} kdeui)

set_target_properties(kstextdate PROPERTIES VERSION 1.2.0 SOVERSION 1)
install(TARGETS kstextdate 
	LIBRARY DESTINATION lib
	${INSTALL_TARGETS_DEFAULT_ARGS})

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

install(FILES  kstextdatetime.h kstextcalendarsystem.h kstextcalendarsystemgregorian.h kstextdatetbl.h kstextdatepicker.h kstextdatetimeedit.h kstextdatewidget.h DESTINATION include)
