CMakeLists.txt 3.06 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
project(resources)

find_package(ECM 0.0.12 CONFIG REQUIRED)
set(CMAKE_MODULE_PATH ${resources_SOURCE_DIR}/cmake ${ECM_MODULE_PATH})

include(GenerateExportHeader)
include(ECMGenerateHeaders)
include(ECMGeneratePriFile)
include(ECMPackageConfigHelpers)
include(ECMSetupVersion)
include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings)

set(KF5_VERSION "4.98.0")
set(QT_REQUIRED_VERSION "5.2.0")

find_package(KF5Config ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5KDELibs4Support ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Akonadi ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarCore ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5PimUtils ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Abc ${KF5_VERSION} CONFIG REQUIRED)
Laurent Montel's avatar
Laurent Montel committed
25
find_package(KF5AkonadiKMime ${KF5_VERSION} CONFIG REQUIRED)
26 27 28 29

# Xsltproc
find_package(Xsltproc)
set_package_properties(Xsltproc PROPERTIES DESCRIPTION "XSLT processor from libxslt" TYPE REQUIRED PURPOSE "Required to generate D-Bus interfaces for all Akonadi resources.")
30

Laurent Montel's avatar
Laurent Montel committed
31 32 33
#add_definitions( -DQT_NO_CAST_FROM_ASCII )
#add_definitions( -DQT_NO_CAST_TO_ASCII )

34
include_directories(
35
  ${kdepim-runtime_SOURCE_DIR}/libkdepim-copy
36 37 38
  ${CMAKE_CURRENT_SOURCE_DIR}/shared
  ${CMAKE_CURRENT_BINARY_DIR}/shared
)
39

40
set( AKONADI_SINGLEFILERESOURCE_SHARED_SOURCES
41
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresourcebase.cpp
42 43 44
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresourceconfigdialogbase.cpp
)

45
if (KDEPIM_MOBILE_UI)
46
set( AKONADI_SINGLEFILERESOURCE_SHARED_UI
47
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresourceconfigdialog_mobile.ui
David Jarvie's avatar
David Jarvie committed
48
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresourceconfigdialog.ui
49
)
50
else ()
51
set( AKONADI_SINGLEFILERESOURCE_SHARED_UI
52
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresourceconfigdialog_desktop.ui
David Jarvie's avatar
David Jarvie committed
53
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresourceconfigdialog.ui
54
)
55
endif ()
56

57
set( AKONADI_COLLECTIONATTRIBUTES_SHARED_SOURCES
58
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/collectionannotationsattribute.cpp
59
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/collectionflagsattribute.cpp
60 61
)

62 63
set( AKONADI_IMAPATTRIBUTES_SHARED_SOURCES
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/imapaclattribute.cpp
64
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/imapquotaattribute.cpp
65 66
)

67 68 69
#add_subdirectory( akonotes )
#add_subdirectory( kalarm )
#add_subdirectory( contacts )
Laurent Montel's avatar
Laurent Montel committed
70 71
add_subdirectory( dav )
#add_subdirectory( ical )
72
#add_subdirectory( imap )
Laurent Montel's avatar
Laurent Montel committed
73
add_subdirectory( kdeaccounts )
74 75 76
#if (Libkolab_FOUND AND Libkolabxml_FOUND)
#    macro_optional_add_subdirectory( kolabproxy )
#endif()
Christophe Giboudeaux's avatar
Christophe Giboudeaux committed
77

78
add_subdirectory( localbookmarks )
Laurent Montel's avatar
Laurent Montel committed
79

80
#add_subdirectory( maildir )
Laurent Montel's avatar
Laurent Montel committed
81

82
#add_subdirectory( openxchange )
83
#add_subdirectory( pop3 )
84

85 86 87
#if( LibKGAPI2_FOUND )
#  add_subdirectory( google )
#endif()
88

89 90 91 92
#if( LibKFbAPI_FOUND )
#  add_subdirectory( facebook )
#endif()

Laurent Montel's avatar
Laurent Montel committed
93
add_subdirectory( shared )
94
add_subdirectory( birthdays )
95 96 97 98
#add_subdirectory( mixedmaildir )
#add_subdirectory( mailtransport_dummy )
#add_subdirectory( mbox )
#add_subdirectory( nntp )
Laurent Montel's avatar
Laurent Montel committed
99 100
add_subdirectory( vcarddir )
add_subdirectory( icaldir )
101 102
#add_subdirectory( vcard )
#add_subdirectory( folderarchivesettings )
Martin Klapetek's avatar
Martin Klapetek committed
103