• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# - Try to find blitz lib
2# Once done this will define
3#
4#  BLITZ_FOUND - system has blitz lib
5#  BLITZ_INCLUDES - the blitz include directory
6#  BLITZ_LIBRARIES - The libraries needed to use blitz
7
8# Copyright (c) 2006, Montel Laurent, <montel@kde.org>
9# Copyright (c) 2007, Allen Winter, <winter@kde.org>
10# Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
11# Redistribution and use is allowed according to the terms of the BSD license.
12# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
13
14# include(FindLibraryWithDebug)
15
16if (BLITZ_INCLUDES AND BLITZ_LIBRARIES)
17  set(Blitz_FIND_QUIETLY TRUE)
18endif (BLITZ_INCLUDES AND BLITZ_LIBRARIES)
19
20find_path(BLITZ_INCLUDES
21  NAMES
22  blitz/array.h
23  PATH_SUFFIXES blitz*
24  PATHS
25  $ENV{BLITZDIR}/include
26  ${INCLUDE_INSTALL_DIR}
27)
28
29find_library(BLITZ_LIBRARIES
30  blitz
31  PATHS
32  $ENV{BLITZDIR}/lib
33  ${LIB_INSTALL_DIR}
34)
35
36include(FindPackageHandleStandardArgs)
37find_package_handle_standard_args(Blitz DEFAULT_MSG
38                                  BLITZ_INCLUDES BLITZ_LIBRARIES)
39
40mark_as_advanced(BLITZ_INCLUDES BLITZ_LIBRARIES)
41