1
# - Try to find KDEPIM3
2
# Find KDEPIM3 headers, libraries and the answer to all questions.
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
10
# Copyright (c) 2007 Daniel Gollub <gollub@b1-systems.de>
12
# Redistribution and use is allowed according to the terms of the New
14
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
17
FIND_PACKAGE( KDE3 REQUIRED )
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} )
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 )
39
# Hide advanced variables from CMake GUIs
40
MARK_AS_ADVANCED( KDEPIM3_KCAL_LIBRARIES KDEPIM3_KABC_LIBRARIES KDEPIM3_INCLUDE_DIR )