File: FindCantor.cmake

package info (click to toggle)
cantor 4%3A20.12.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 21,572 kB
  • sloc: cpp: 41,602; ansic: 5,802; pascal: 1,027; xml: 371; sh: 289; makefile: 207; lisp: 91; python: 24
file content (24 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (7)
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 Cantor Library
# Once done this will define
#
#  CANTOR_FOUND - system has Cantor
#  CANTOR_INCLUDE_DIR - the Cantor include directory
#  CANTOR_LIBRARIES 
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#


if ( CANTOR_INCLUDE_DIR AND CANTOR_LIBRARIES )
   # in cache already
   SET( CANTOR_FIND_QUIETLY TRUE )
endif ( CANTOR_INCLUDE_DIR AND CANTOR_LIBRARIES )

FIND_PATH( CANTOR_INCLUDE_DIR NAMES backend.h PATH_SUFFIXES cantor
)

FIND_LIBRARY( CANTOR_LIBRARIES NAMES cantorlibs )


include( FindPackageHandleStandardArgs )
FIND_PACKAGE_HANDLE_STANDARD_ARGS( cantor DEFAULT_MSG CANTOR_INCLUDE_DIR CANTOR_LIBRARIES )