INCLUDE(${QT_USE_FILE})

INCLUDE_DIRECTORIES(${KDE4_INCLUDE_DIR}
                    ${QT_INCLUDE_DIR}
                    ${QT_QTCORE_INCLUDE_DIR}
                    ${QT_QTGUI_INCLUDE_DIR}
                    ${QT_QTXML_INCLUDE_DIR}
                    ${QTTAPIOCA_INC_DIR}
                    ${CMAKE_SOURCE_DIR}/src/client
                    ${CMAKE_BINARY_DIR}/src/client
                    ${CMAKE_SOURCE_DIR}/include
                    ${CMAKE_CURRENT_BINARY_DIR}
                    ${CMAKE_CURRENT_SOURCE_DIR}
)

# KControl Module to manage Decibel accounts

SET(kcm_decibel_accountmanager_PART_SRCS
    kcm_decibel_accountmanager.cpp accountmodel.cpp presencedelegate.cpp
)

KDE4_AUTOMOC(${kcm_decibel_accountmanager_PART_SRCS})
KDE4_ADD_UI_FILES(kcm_decibel_accountmanager_PART_SRCS configdialog.ui)
KDE4_ADD_PLUGIN(kcm_decibel_accountmanager
                ${kcm_decibel_accountmanager_PART_SRCS}
)

TARGET_LINK_LIBRARIES(kcm_decibel_accountmanager
                      ${KDE4_KDEUI_LIBS}
                      decibel
)
INSTALL(TARGETS kcm_decibel_accountmanager
        DESTINATION ${PLUGIN_INSTALL_DIR}
)

INSTALL(FILES kcm_decibel_accountmanager.desktop
        DESTINATION ${SERVICES_INSTALL_DIR}
)

