CMakeLists.txt 2.75 KB
Newer Older
1 2
project(resources)

Laurent Montel's avatar
Laurent Montel committed
3 4
set(AKONADICALENDAR_LIB_VERSION "4.78.0")
set(KMBOX_LIB_VERSION "4.78.0")
Laurent Montel's avatar
Laurent Montel committed
5 6


Laurent Montel's avatar
Laurent Montel committed
7 8
find_package(KF5AkonadiCalendar ${AKONADICALENDAR_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Mbox ${KMBOX_LIB_VERSION} CONFIG REQUIRED)
Laurent Montel's avatar
Laurent Montel committed
9 10

# Extra package
11
find_package(KF5GAPI "5.1.0" CONFIG)
Laurent Montel's avatar
Laurent Montel committed
12

Laurent Montel's avatar
Laurent Montel committed
13 14


15 16 17
# 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.")
18

19
# Libkolab
Christian Mollekopf's avatar
Christian Mollekopf committed
20
find_package(Libkolab 1.0 QUIET CONFIG)
21 22 23
set_package_properties(Libkolab PROPERTIES DESCRIPTION "libkolab" URL "http://mirror.kolabsys.com/pub/releases" TYPE OPTIONAL PURPOSE "The Kolab Format libraries are required to build the Kolab Groupware Resource")

# Libkolabxml
24
find_package(Libkolabxml 1.2 QUIET CONFIG)
25 26
set_package_properties(Libkolabxml PROPERTIES DESCRIPTION "Kolabxml" URL "http://mirror.kolabsys.com/pub/releases" TYPE OPTIONAL PURPOSE "The Kolab XML Format Schema Definitions Library is required to build the Kolab Groupware Resource")

27
include_directories(
Laurent Montel's avatar
Laurent Montel committed
28 29
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresource/
  ${CMAKE_CURRENT_BINARY_DIR}/shared/singlefileresource/
Laurent Montel's avatar
Laurent Montel committed
30
  ${CMAKE_CURRENT_SOURCE_DIR}/folderarchivesettings/
31 32
)

33

34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
# resource tests
macro( akonadi_add_resourcetest _testname _script )
  if ( ${EXECUTABLE_OUTPUT_PATH} )
    set( _exepath ${EXECUTABLE_OUTPUT_PATH} )
  else ()
    set( _exepath ${kdepim-runtime_BINARY_DIR}/resourcetester )
  endif ()
  if (WIN32)
    set(_resourcetester ${_exepath}/resourcetester.bat)
  else ()
    set(_resourcetester ${_exepath}/resourcetester)
  endif ()
  if (UNIX)
    set(_resourcetester ${_resourcetester}.shell)
  endif ()
  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${_script} ${CMAKE_CURRENT_BINARY_DIR}/${_script} COPYONLY)
  if (KDEPIM_RUN_ISOLATED_TESTS)
    add_test( akonadi-mysql-db-${_testname} akonaditest -c ${kdepim-runtime_SOURCE_DIR}/resourcetester/tests/unittestenv/config-mysql-db.xml ${_resourcetester} -c ${CMAKE_CURRENT_BINARY_DIR}/${_script} )
  endif ()
endmacro( akonadi_add_resourcetest )


56

Laurent Montel's avatar
Laurent Montel committed
57 58 59
add_subdirectory( akonotes )
add_subdirectory( kalarm )
add_subdirectory( contacts )
Laurent Montel's avatar
Laurent Montel committed
60
add_subdirectory( dav )
Laurent Montel's avatar
Laurent Montel committed
61
add_subdirectory( ical )
Laurent Montel's avatar
Laurent Montel committed
62
add_subdirectory( imap )
Christian Mollekopf's avatar
Christian Mollekopf committed
63
if (Libkolab_FOUND AND Libkolabxml_FOUND)
Laurent Montel's avatar
Laurent Montel committed
64 65
    add_subdirectory( kolab )
endif()
Christophe Giboudeaux's avatar
Christophe Giboudeaux committed
66

Laurent Montel's avatar
Laurent Montel committed
67
add_subdirectory( maildir )
Laurent Montel's avatar
Laurent Montel committed
68

Laurent Montel's avatar
Laurent Montel committed
69
add_subdirectory( openxchange )
Laurent Montel's avatar
Laurent Montel committed
70
add_subdirectory( pop3 )
71

Laurent Montel's avatar
Laurent Montel committed
72 73
if( KF5GAPI_FOUND )
  add_subdirectory( google )
74 75
  # Disabled in KDE 4.14 - too many issues for stable release
  #add_subdirectory( gmail )
Laurent Montel's avatar
Laurent Montel committed
76
endif()
77

Laurent Montel's avatar
Laurent Montel committed
78
add_subdirectory( shared )
79
add_subdirectory( birthdays )
Laurent Montel's avatar
Laurent Montel committed
80
add_subdirectory( mixedmaildir )
Laurent Montel's avatar
Laurent Montel committed
81
add_subdirectory( mbox )
Laurent Montel's avatar
Laurent Montel committed
82 83
add_subdirectory( vcarddir )
add_subdirectory( icaldir )
Laurent Montel's avatar
Laurent Montel committed
84
add_subdirectory( vcard )
Laurent Montel's avatar
Laurent Montel committed
85
add_subdirectory( folderarchivesettings )
86 87