blob: 9acf2471fe64bf462edc548e8db180aafa75c778 (
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
45
46
47
|
# - Try to find blitz lib
# Once done this will define
#
# BLITZ_FOUND - system has blitz lib
# BLITZ_INCLUDES - the blitz include directory
# BLITZ_LIBRARIES - The libraries needed to use blitz
#
# Copyright (c) 2006, Montel Laurent, <montel@kde.org>
# Copyright (c) 2007, Allen Winter, <winter@kde.org>
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (BLITZ_INCLUDES AND BLITZ_LIBRARIES)
set(Blitz_FIND_QUIETLY TRUE)
endif (BLITZ_INCLUDES AND BLITZ_LIBRARIES)
find_path(BLITZ_INCLUDES
NAMES
blitz.h
PATHS
${KDE4_INCLUDE_DIR}
${INCLUDE_INSTALL_DIR}
)
FIND_LIBRARY(BLITZ_LIBRARIES
NAMES
blitz
PATHS
${KDE4_LIB_DIR}
${LIB_INSTALL_DIR}
)
if(BLITZ_INCLUDES AND BLITZ_LIBRARIES)
set(BLITZ_FOUND TRUE)
endif(BLITZ_INCLUDES AND BLITZ_LIBRARIES)
if(BLITZ_FOUND)
if(NOT Blitz_FIND_QUIETLY)
message(STATUS "Found Blitz: ${BLITZ_INCLUDES}")
endif(NOT Blitz_FIND_QUIETLY)
else(BLITZ_FOUND)
if(Blitz_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find Blitz")
endif(Blitz_FIND_REQUIRED)
endif(BLITZ_FOUND)
mark_as_advanced(BLITZ_INCLUDES BLITZ_LIBRARIES)
|