find_package(Automoc4)
include(${QT_USE_FILE})

add_definitions(${QT_DEFINITIONS})

set(declarative_SRCS
    declarativeevent.cpp
    declarativelogmodel.cpp
    declarativesubject.cpp
    plugin.cpp
)

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../src/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/)
automoc4_add_library(QZeitgeistDeclarativePlugin MODULE ${declarative_SRCS})

target_link_libraries(QZeitgeistDeclarativePlugin ${QT_QTDECLARATIVE_LIBRARIES} qzeitgeist)

install(TARGETS QZeitgeistDeclarativePlugin DESTINATION ${QT_IMPORTS_DIR}/org/gnome/zeitgeist)
install(FILES qmldir DESTINATION ${QT_IMPORTS_DIR}/org/gnome/zeitgeist)

find_package(Automoc4)
include(${QT_USE_FILE})

add_definitions(${QT_DEFINITIONS})

set(declarative_SRCS
    declarativeevent.cpp
    declarativelogmodel.cpp
    declarativesubject.cpp
    plugin.cpp
)

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/../src/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/)
automoc4_add_library(QZeitgeistDeclarativePlugin MODULE ${declarative_SRCS})

target_link_libraries(QZeitgeistDeclarativePlugin ${QT_QTDECLARATIVE_LIBRARIES} qzeitgeist)

set(DECLARATIVE_IMPORT_PREFIX ${QT_IMPORTS_DIR} CACHE PATH "Location to install declarative bindings")

install(TARGETS QZeitgeistDeclarativePlugin DESTINATION ${DECLARATIVE_IMPORT_PREFIX}/org/gnome/zeitgeist)
install(FILES qmldir DESTINATION ${QT_IMPORTS_DIR}/org/gnome/zeitgeist)

Allow the declarative installation directory to be configurable
Allow the declarative installation directory to be configurable
