You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1023 B
44 lines
1023 B
project(calendar_engine) |
|
|
|
include_directories( |
|
${KDEPIMLIBS_INCLUDE_DIRS} |
|
${Boost_INCLUDE_DIR} |
|
) |
|
|
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" ) |
|
|
|
set(calendar_engine_srcs |
|
calendarengine.cpp |
|
) |
|
|
|
if(Akonadi_FOUND) |
|
add_definitions(-DAKONADI_FOUND) |
|
set(calendar_engine_srcs ${calendar_engine_srcs} |
|
eventdatacontainer.cpp |
|
) |
|
endif() |
|
|
|
add_library(plasma_engine_calendar MODULE ${calendar_engine_srcs}) |
|
|
|
target_link_libraries( |
|
plasma_engine_calendar |
|
${KDEPIMLIBS_KHOLIDAYS_LIBRARY} |
|
KF5::CoreAddons |
|
KF5::Plasma |
|
${KDE4_KMIME_LIBS} |
|
${KDE4_KCALCORE_LIBS} |
|
${KDE4_KCALUTILS_LIBS} |
|
) |
|
|
|
if(Akonadi_FOUND) |
|
target_link_libraries( |
|
plasma_engine_calendar |
|
akonadi-calendar |
|
${KDE4_AKONADI_LIBS} |
|
${KDEPIMLIBS_AKONADI_KCAL_LIBS} |
|
) |
|
endif() |
|
|
|
install(TARGETS plasma_engine_calendar DESTINATION ${PLUGIN_INSTALL_DIR}/plasma/dataengine) |
|
install(FILES plasma-dataengine-calendar.desktop DESTINATION ${SERVICES_INSTALL_DIR}) |
|
|
|
|