File: FindAlglib.cmake

package info (click to toggle)
hdrmerge 0.5%2Bgit20200117-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 33,872 kB
  • sloc: cpp: 5,026; sh: 175; makefile: 5
file content (42 lines) | stat: -rw-r--r-- 1,088 bytes parent folder | download | duplicates (2)
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
# - Find ALGLIB
# Find the native ALGLIB includes and library
#
#  ALGLIB_INCLUDES    - where to find Alglib includes
#  ALGLIB_LIBRARIES   - List of libraries when using Alglib.
#  ALGLIB_FOUND       - True if Alglib found.

if (ALGLIB_INCLUDES)
  # Already in cache, be silent
  set (ALGLIB_FIND_QUIETLY TRUE)
endif (ALGLIB_INCLUDES)

find_path (ALGLIB_INCLUDES 
    alglibinternal.h
    alglibmisc.h
    ap.h
    dataanalysis.h
    diffequations.h
    fasttransforms.h
    integration.h
    interpolation.h
    linalg.h
    optimization.h
    solvers.h
    specialfunctions.h
    statistics.h
    stdafx.h
    PATHS
    /usr/include/alglib/
    /usr/include/libalglib/
    /usr/local/include/alglib3/
    /usr/local/include/libalglib/
    )

find_library (ALGLIB_LIBRARIES NAMES alglib alglib3)

# handle the QUIETLY and REQUIRED arguments and set ALGLIB_FOUND to TRUE if
# all listed variables are TRUE
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (ALGLIB DEFAULT_MSG ALGLIB_LIBRARIES ALGLIB_INCLUDES)

mark_as_advanced (ALGLIB_LIBRARIES ALGLIB_INCLUDES)