File: FindMathicgb.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-- 908 bytes parent folder | download | duplicates (4)
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 mathicgb libraries
# See https://github.com/Macaulay2/mathicgb
#
# This file sets up mathicgb for CMake. Once done this will define
#  MATHICGB_FOUND           - system has MATHICGB lib
#  MATHICGB_INCLUDE_DIR     - the MATHICGB include directory
#  MATHICGB_LIBRARIES       - Libraries needed to use MATHICGB
#
# Copyright (c) 2020, Mahrud Sayrafi, <mahrud@umn.edu>
#
# Redistribution and use is allowed according to the terms of the BSD license.

find_path(MATHICGB_INCLUDE_DIR NAMES mathicgb.h
  PATHS ${INCLUDE_INSTALL_DIR} ${CMAKE_INSTALL_PREFIX}/include
  PATH_SUFFIXES mathicgb
  )
find_library(MATHICGB_LIBRARIES NAMES mathicgb
  PATHS ${LIB_INSTALL_DIR} ${CMAKE_INSTALL_PREFIX}/lib
  )

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Mathicgb DEFAULT_MSG MATHICGB_INCLUDE_DIR MATHICGB_LIBRARIES)

mark_as_advanced(MATHICGB_INCLUDE_DIR MATHICGB_LIBRARIES)