CMakeLists.txt 3.01 KB
Newer Older
1
project(resources)
2
cmake_minimum_required(VERSION 2.8.12)
3

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


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

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

Laurent Montel's avatar
Laurent Montel committed
14 15


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

20
# Libkolab
Laurent Montel's avatar
Laurent Montel committed
21
find_package(KF5Kolab "1.0.0" QUIET CONFIG)
22 23 24 25 26 27
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
find_package(Libkolabxml 1.0 QUIET CONFIG)
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")

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

34

35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
# 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 )


57

Laurent Montel's avatar
Laurent Montel committed
58 59 60
#add_definitions( -DQT_NO_CAST_FROM_ASCII )
#add_definitions( -DQT_NO_CAST_TO_ASCII )

Laurent Montel's avatar
Laurent Montel committed
61 62 63
add_subdirectory( akonotes )
add_subdirectory( kalarm )
add_subdirectory( contacts )
Laurent Montel's avatar
Laurent Montel committed
64
add_subdirectory( dav )
Laurent Montel's avatar
Laurent Montel committed
65
add_subdirectory( ical )
Laurent Montel's avatar
Laurent Montel committed
66
add_subdirectory( imap )
Laurent Montel's avatar
Laurent Montel committed
67 68 69
if (KF5Kolab_FOUND AND Libkolabxml_FOUND)
    add_subdirectory( kolab )
endif()
Christophe Giboudeaux's avatar
Christophe Giboudeaux committed
70

Laurent Montel's avatar
Laurent Montel committed
71
add_subdirectory( maildir )
Laurent Montel's avatar
Laurent Montel committed
72

Laurent Montel's avatar
Laurent Montel committed
73
add_subdirectory( openxchange )
Laurent Montel's avatar
Laurent Montel committed
74
add_subdirectory( pop3 )
75

Laurent Montel's avatar
Laurent Montel committed
76 77
if( KF5GAPI_FOUND )
  add_subdirectory( google )
78 79
  # Disabled in KDE 4.14 - too many issues for stable release
  #add_subdirectory( gmail )
Laurent Montel's avatar
Laurent Montel committed
80
endif()
81

Laurent Montel's avatar
Laurent Montel committed
82
add_subdirectory( shared )
83
add_subdirectory( birthdays )
Laurent Montel's avatar
Laurent Montel committed
84
add_subdirectory( mixedmaildir )
Laurent Montel's avatar
Laurent Montel committed
85
add_subdirectory( mbox )
Laurent Montel's avatar
Laurent Montel committed
86 87
add_subdirectory( vcarddir )
add_subdirectory( icaldir )
Laurent Montel's avatar
Laurent Montel committed
88
add_subdirectory( vcard )
Laurent Montel's avatar
Laurent Montel committed
89
add_subdirectory( folderarchivesettings )
90 91 92 93 94

if ("${CMAKE_SOURCE_DIR}" STREQUAL "${resources_SOURCE_DIR}")
  feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()