project(textvariables)

include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${KOTEXT_INCLUDES} ${KOGUIUTILS_INCLUDES} ${KOMAIN_INCLUDES} )

set(textvariables_SRCS
    VariablesPlugin.cpp
    DateVariable.cpp
    DateVariableFactory.cpp
    FixedDateFormat.cpp
    PageVariable.cpp
    PageVariableFactory.cpp
    InfoVariable.cpp
    InfoVariableFactory.cpp
)


kde4_add_ui_files( textvariables_SRCS
    FixedDateFormat.ui
)

kde4_add_plugin(textvariables ${textvariables_SRCS})

target_link_libraries(textvariables kotext)

install(TARGETS textvariables DESTINATION ${PLUGIN_INSTALL_DIR})

install( FILES textvariables.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
