You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  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. # Copyright (c) 2006, Montel Laurent, <montel@kde.org>
  8. # Copyright (c) 2007, Allen Winter, <winter@kde.org>
  9. # Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
  10. # Redistribution and use is allowed according to the terms of the BSD license.
  11. # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
  12. # include(FindLibraryWithDebug)
  13. if (BLITZ_INCLUDES AND BLITZ_LIBRARIES)
  14. set(Blitz_FIND_QUIETLY TRUE)
  15. endif (BLITZ_INCLUDES AND BLITZ_LIBRARIES)
  16. find_path(BLITZ_INCLUDES
  17. NAMES
  18. blitz/array.h
  19. PATH_SUFFIXES blitz*
  20. PATHS
  21. $ENV{BLITZDIR}/include
  22. ${INCLUDE_INSTALL_DIR}
  23. )
  24. find_library(BLITZ_LIBRARIES
  25. blitz
  26. PATHS
  27. $ENV{BLITZDIR}/lib
  28. ${LIB_INSTALL_DIR}
  29. )
  30. include(FindPackageHandleStandardArgs)
  31. find_package_handle_standard_args(Blitz DEFAULT_MSG
  32. BLITZ_INCLUDES BLITZ_LIBRARIES)
  33. mark_as_advanced(BLITZ_INCLUDES BLITZ_LIBRARIES)