File: FindMathic.cmake

package info (click to toggle)
mathicgb 1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,992 kB
  • sloc: cpp: 21,782; sh: 4,662; makefile: 107
file content (24 lines) | stat: -rw-r--r-- 876 bytes parent folder | download | duplicates (9)
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)