summaryrefslogtreecommitdiffstats
path: root/libkcal/ConfigureChecks.cmake
blob: 82e70cdf08e27316cbea309802a2b803a4f2eb31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

# libical
pkg_search_module( LIBICAL libical )
if( LIBICAL_FOUND )
  # check for libical >= 3.0
  if( NOT (LIBICAL_VERSION VERSION_LESS "3.0") )
    add_definitions(-DUSE_LIBICAL_3_0)
  endif( )
  # check for libical >= 1.0
  if( LIBICAL_VERSION VERSION_LESS "1.0" )
    set( LIBICAL_LESS_1_0 1 CACHE INTERNAL "" FORCE )
  endif( )
  # check for libical >= 0.46
  if( NOT (LIBICAL_VERSION VERSION_LESS "0.46") )
    add_definitions(-DUSE_LIBICAL_0_46)
  endif( )
else( )
  tde_message_fatal( "libical are required, but not found on your system" )
endif()