blob: 2042719c1f38e593a3541003844457309d6f9011 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Once done this will define
#
# KONTO_FOUND - system has the Nepomuk-KDE backbone lib Konto
# KONTO_INCLUDES - the libKonto include directory
# KONTO_LIBRARIES - Link these to use libKonto
#
if(KONTO_INCLUDES AND KONTO_LIBRARIES)
# Already in cache, be silent
set(Konto_FIND_QUIETLY TRUE)
endif(KONTO_INCLUDES AND KONTO_LIBRARIES
FIND_PATH(KONTO_INCLUDES
NAMES
konto/class.h
PATHS
${KDE4_INCLUDE_DIR}
${INCLUDE_INSTALL_DIR}
)
FIND_LIBRARY(KONTO_LIBRARIES
NAMES
konto
PATHS
${KDE4_LIB_DIR}
${LIB_INSTALL_DIR}
)
if(KONTO_INCLUDES AND KONTO_LIBRARIES)
set(KONTO_FOUND TRUE)
endif(KONTO_INCLUDES AND KONTO_LIBRARIES)
if(KONTO_FOUND)
if (NOT Konto_FIND_QUIETLY)
message(STATUS "Found Konto: ${KONTO_LIBRARIES}")
endif (NOT Konto_FIND_QUIETLY)
else(KONTO_FOUND)
if(Konto_FIND_REQUIRED)
message(FATAL_ERROR "Could not find Konto library.")
endif(Konto_FIND_REQUIRED)
endif(KONTO_FOUND)
|