~ubuntu-branches/ubuntu/trusty/libopensync-plugin-file/trusty

« back to all changes in this revision

Viewing changes to cmake/modules/FindKDEPIM3.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2010-02-06 22:18:21 UTC
  • mfrom: (1.1.3 upstream) (4.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100206221821-kvbuxtp4n8r8ko6z
Tags: 0.39-1
* New upstream development release.
* debian/control (Build-Depends): Updated libopensync-dev build
  dependency to libopensync1exp7-dev.
* Upload to unstable.
* debian/rules (configure-stamp): Pass $(CFLAGS) to cmake instead of a
  hardcoded list.
* debian/control (Build-Depends): Bump required debhelper version to 7.0.0.
* debian/compat: Set to 7.
* debian/control (Standards-Version): Bumped to 3.8.3.
* debian/rules (install): Replace call to dh_clean -k with dh_prep.
* debian/rules (binary-arch): Removed call to dh_makeshlibs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# - Try to find KDEPIM3
 
2
# Find KDEPIM3 headers, libraries and the answer to all questions.
 
3
#
 
4
#  KDEPIM3_FOUND               True if KDEPIM3 got found
 
5
#  KDEPIM3_INCLUDE_DIR         Location of KDEPIM3 headers 
 
6
#  KDEPIM3_KCAL_LIBRARIES      List of libaries to use KABC of KDEPIM3 
 
7
#  KDEPIM3_KABC_LIBRARIES      List of libaries to use KCAL of KDEPIM3 
 
8
#  KDEPIM3_DEFINITIONS         Definitions to compile KDEPIM3 
 
9
#
 
10
# Copyright (c) 2007 Daniel Gollub <gollub@b1-systems.de>
 
11
#
 
12
#  Redistribution and use is allowed according to the terms of the New
 
13
#  BSD license.
 
14
#  For details see the accompanying COPYING-CMAKE-SCRIPTS file.
 
15
#
 
16
 
 
17
FIND_PACKAGE( KDE3 REQUIRED )
 
18
 
 
19
FIND_PATH( KDEPIM3_INCLUDE_DIR kdepimmacros.h ${KDE3_INCLUDE_DIR} )
 
20
FIND_LIBRARY( KDEPIM3_KCAL_LIBRARIES kcal ${KDE3_LIB_DIR} )
 
21
FIND_LIBRARY( KDEPIM3_KABC_LIBRARIES kabc ${KDE3_LIB_DIR} )
 
22
 
 
23
# Report results
 
24
IF ( KDEPIM3_KCAL_LIBRARIES AND KDEPIM3_KABC_LIBRARIES AND KDEPIM3_INCLUDE_DIR )
 
25
        SET( KDEPIM3_FOUND 1 )
 
26
        IF ( NOT KDEPIM3_FIND_QUIETLY )
 
27
                MESSAGE( STATUS "Found KDE PIM 3: ${KDEPIM3_KABC_LIBRARIES} ${KDEPIM3_KCAL_LIBRARIES}" )
 
28
        ENDIF ( NOT KDEPIM3_FIND_QUIETLY )
 
29
ELSE ( KDEPIM3_KCAL_LIBRARIES AND KDEPIM3_KABC_LIBRARIES AND KDEPIM3_INCLUDE_DIR )
 
30
        IF ( KDEPIM3_FIND_REQUIRED )
 
31
                MESSAGE( SEND_ERROR "Could NOT find KDE PIM 3" )
 
32
        ELSE ( KDEPIM3_FIND_REQUIRED )
 
33
                IF ( NOT KDEPIM3_FIND_QUIETLY )
 
34
                        MESSAGE( STATUS "Could NOT find KDE PIM 3" )
 
35
                ENDIF ( NOT KDEPIM3_FIND_QUIETLY )
 
36
        ENDIF ( KDEPIM3_FIND_REQUIRED )
 
37
ENDIF ( KDEPIM3_KCAL_LIBRARIES AND KDEPIM3_KABC_LIBRARIES AND KDEPIM3_INCLUDE_DIR )
 
38
 
 
39
# Hide advanced variables from CMake GUIs
 
40
MARK_AS_ADVANCED( KDEPIM3_KCAL_LIBRARIES KDEPIM3_KABC_LIBRARIES KDEPIM3_INCLUDE_DIR )
 
41