CMakeLists.txt 2.57 KB
Newer Older
1
# Libkolabxml
2
find_package(Libkolabxml 1.1 QUIET CONFIG)
3
4
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")

5
6
# Etebase library
find_package(Etebase CONFIG)
7
set_package_properties(Etebase PROPERTIES URL "https://github.com/etesync/libetebase/releases" TYPE OPTIONAL PURPOSE "The Etebase library is required to build the EteSync Groupware Resource")
8

9
include_directories(
Laurent Montel's avatar
Laurent Montel committed
10
11
  ${CMAKE_CURRENT_SOURCE_DIR}/shared/singlefileresource/
  ${CMAKE_CURRENT_BINARY_DIR}/shared/singlefileresource/
Laurent Montel's avatar
Laurent Montel committed
12
  ${CMAKE_CURRENT_SOURCE_DIR}/folderarchivesettings/
13
14
)

15

16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# 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)
33
    add_test( NAME akonadi-mysql-db-${_testname} COMMAND akonaditest -c ${kdepim-runtime_SOURCE_DIR}/resourcetester/tests/unittestenv/config-mysql-db.xml ${_resourcetester} -c ${CMAKE_CURRENT_BINARY_DIR}/${_script} )
34
35
36
37
  endif ()
endmacro( akonadi_add_resourcetest )


38

Laurent Montel's avatar
Laurent Montel committed
39
add_subdirectory( akonotes )
40
41
42
if (TARGET KF5::AlarmCalendar)
    add_subdirectory( kalarm )
endif()
Laurent Montel's avatar
Laurent Montel committed
43
add_subdirectory( contacts )
Laurent Montel's avatar
Laurent Montel committed
44
add_subdirectory( dav )
Laurent Montel's avatar
Laurent Montel committed
45
add_subdirectory( ical )
Laurent Montel's avatar
Laurent Montel committed
46
add_subdirectory( imap )
47
if (Libkolabxml_FOUND)
48
49
50
51
    # The boost-provided CMake files are unreliable
    set(Boost_NO_BOOST_CMAKE ON)
    find_package(Boost MODULE REQUIRED COMPONENTS atomic thread system)
    unset(Boost_NO_BOOST_CMAKE)
Laurent Montel's avatar
Laurent Montel committed
52
53
    add_subdirectory( kolab )
endif()
Laurent Montel's avatar
Laurent Montel committed
54

55
if (Etebase_FOUND)
56
57
58
    add_subdirectory( etesync )
endif()

Laurent Montel's avatar
Laurent Montel committed
59
60
#Disable it as it seems Facebook disabled the login and event API has been crippled
#add_subdirectory( facebook )
Laurent Montel's avatar
Laurent Montel committed
61
add_subdirectory( maildir )
Laurent Montel's avatar
Laurent Montel committed
62

Laurent Montel's avatar
Laurent Montel committed
63
add_subdirectory( openxchange )
Laurent Montel's avatar
Laurent Montel committed
64
add_subdirectory( pop3 )
65

66
add_subdirectory( google-groupware )
67

Laurent Montel's avatar
Laurent Montel committed
68
add_subdirectory( shared )
69
add_subdirectory( birthdays )
Laurent Montel's avatar
Laurent Montel committed
70
add_subdirectory( mixedmaildir )
Laurent Montel's avatar
Laurent Montel committed
71
add_subdirectory( mbox )
Laurent Montel's avatar
Laurent Montel committed
72
73
add_subdirectory( vcarddir )
add_subdirectory( icaldir )
Laurent Montel's avatar
Laurent Montel committed
74
add_subdirectory( vcard )
Laurent Montel's avatar
Laurent Montel committed
75
add_subdirectory( folderarchivesettings )
76
add_subdirectory( tomboynotes )
77
add_subdirectory( ews )