File: FindMathic.cmake

package info (click to toggle)
macaulay2 1.21%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 133,096 kB
  • sloc: cpp: 110,377; ansic: 16,306; javascript: 4,193; makefile: 3,821; sh: 3,580; lisp: 764; yacc: 590; xml: 177; python: 140; perl: 114; lex: 65; awk: 3
file content (24 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Try to find the mathic libraries
# See https://github.com/Macaulay2/mathic
#
# This file sets up mathic for CMake. Once done this will define
#  MATHIC_FOUND             - system has MATHIC lib
#  MATHIC_INCLUDE_DIR       - the MATHIC include directory
#  MATHIC_LIBRARIES         - Libraries needed to use MATHIC
#
# Copyright (c) 2020, Mahrud Sayrafi, <mahrud@umn.edu>
#
# Redistribution and use is allowed according to the terms of the BSD license.

find_path(MATHIC_INCLUDE_DIR NAMES mathic.h
  PATHS ${INCLUDE_INSTALL_DIR} ${CMAKE_INSTALL_PREFIX}/include
  PATH_SUFFIXES mathic
  )
find_library(MATHIC_LIBRARIES NAMES mathic
  PATHS ${LIB_INSTALL_DIR} ${CMAKE_INSTALL_PREFIX}/lib
  )

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Mathic DEFAULT_MSG MATHIC_INCLUDE_DIR MATHIC_LIBRARIES)

mark_as_advanced(MATHIC_INCLUDE_DIR MATHIC_LIBRARIES)