Warning, /education/step/cmake/modules/FindGSL.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find the freetype library
0002 #  GSL_FOUND - system has libusb
0003 #  GSL_INCLUDE_DIR - the libusb include directory
0004 #  GSL_LIBRARIES - Link these to use libusb
0005 
0006 # SPDX-FileCopyrightText: 2008 Allen Winter <winter@kde.org>
0007 #
0008 # SPDX-License-Identifier: BSD-3-Clause
0009 
0010 if (GSL_INCLUDE_DIR AND GSL_LIBRARIES AND GSL_CBLAS_LIBRARIES)
0011 
0012   # Already in cache, be silent
0013   set(GSL_FIND_QUIETLY TRUE)
0014 
0015 else (GSL_INCLUDE_DIR AND GSL_LIBRARIES AND GSL_CBLAS_LIBRARIES)
0016   if(NOT WIN32)
0017     # use pkg-config to get the directories and then use these values
0018     # in the FIND_PATH() and FIND_LIBRARY() calls
0019     include(FindPkgConfig)
0020     pkg_check_modules(_pc_GSL gsl)
0021   else(NOT WIN32)
0022     set(_pc_GSL_FOUND TRUE)
0023   endif(NOT WIN32)
0024 
0025   if(_pc_GSL_FOUND)
0026     find_library(GSL_LIBRARIES
0027       NAMES gsl
0028       HINTS ${_pc_GSL_LIBRARY_DIRS} ${CMAKE_LIBRARY_PATH}
0029     )
0030 
0031     find_library(GSL_CBLAS_LIBRARIES
0032       NAMES gslcblas
0033       HINTS ${_pc_GSL_LIBRARY_DIRS} ${CMAKE_LIBRARY_PATH}
0034     )
0035 
0036     find_path(GSL_INCLUDE_DIR
0037       NAMES gsl/gsl_cdf.h gsl/gsl_randist.h
0038       HINTS ${_pc_GSL_INCLUDE_DIRS}
0039       PATH_SUFFIXES gsl
0040     )
0041 
0042   endif(_pc_GSL_FOUND)
0043 
0044   mark_as_advanced(GSL_INCLUDE_DIR GSL_LIBRARIES GSL_CBLAS_LIBRARIES)
0045 
0046 endif (GSL_INCLUDE_DIR AND GSL_LIBRARIES AND GSL_CBLAS_LIBRARIES)
0047 
0048 include(FindPackageHandleStandardArgs)
0049 FIND_PACKAGE_HANDLE_STANDARD_ARGS(GSL DEFAULT_MSG
0050                                   GSL_LIBRARIES GSL_CBLAS_LIBRARIES GSL_INCLUDE_DIR)