mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 19:02:51 +00:00
61 lines
2.6 KiB
CMake
61 lines
2.6 KiB
CMake
include_directories(BEFORE
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
${Boost_INCLUDE_DIR}
|
|
)
|
|
|
|
#find_library( AKONADI_PROTOCOLINTERNALS_LIBRARY NAMES akonadiprotocolinternals
|
|
# PATHS
|
|
# ${CMAKE_LIBRARY_PATH}
|
|
# ${CMAKE_INSTALL_PREFIX}/lib
|
|
#)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_ENABLE_EXCEPTIONS}")
|
|
|
|
########### next target ###############
|
|
|
|
set(control_SRCS
|
|
agenttype.cpp
|
|
agentinstance.cpp
|
|
agentprocessinstance.cpp
|
|
agentthreadinstance.cpp
|
|
agentmanager.cpp
|
|
controlmanager.cpp
|
|
main.cpp
|
|
processcontrol.cpp
|
|
)
|
|
|
|
qt4_add_dbus_adaptor(control_SRCS ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.AgentManager.xml agentmanager.h AgentManager)
|
|
qt4_add_dbus_adaptor(control_SRCS ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.ControlManager.xml controlmanager.h ControlManager)
|
|
qt4_add_dbus_adaptor(control_SRCS ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.AgentManagerInternal.xml agentmanager.h AgentManager)
|
|
qt4_add_dbus_interfaces(control_SRCS
|
|
${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Agent.Control.xml
|
|
${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Agent.Status.xml
|
|
${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Agent.Search.xml
|
|
${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.AgentServer.xml
|
|
${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Resource.xml
|
|
${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Preprocessor.xml
|
|
${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.Server.xml
|
|
)
|
|
qt4_add_dbus_interface(control_SRCS ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.ResourceManager.xml resource_manager)
|
|
qt4_add_dbus_interface(control_SRCS ${Akonadi_SOURCE_DIR}/interfaces/org.freedesktop.Akonadi.PreprocessorManager.xml preprocessor_manager)
|
|
|
|
add_executable(akonadi_control ${control_SRCS})
|
|
set_target_properties(akonadi_control PROPERTIES OUTPUT_NAME akonadi_control)
|
|
if (WIN32)
|
|
set_target_properties(akonadi_control PROPERTIES WIN32_EXECUTABLE TRUE)
|
|
target_link_libraries(akonadi_control ${QT_QTMAIN_LIBRARY})
|
|
endif()
|
|
|
|
target_link_libraries(akonadi_control
|
|
akonadi_shared
|
|
${QT_QTCORE_LIBRARY}
|
|
${QT_QTDBUS_LIBRARY}
|
|
${AKONADI_PROTOCOLINTERNALS_LIBS}
|
|
${AKONADI_SYSTEM_LIBS}
|
|
${Boost_PROGRAM_OPTIONS_LIBRARY}
|
|
)
|
|
|
|
install(TARGETS akonadi_control DESTINATION ${BIN_INSTALL_DIR})
|
|
|
|
configure_file(org.freedesktop.Akonadi.Control.service.cmake ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Akonadi.Control.service)
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.freedesktop.Akonadi.Control.service DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dbus-1/services)
|