File: FindTetGen.cmake

package info (click to toggle)
mshr 2018.1.0+dfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,136 kB
  • sloc: cpp: 9,808; python: 680; makefile: 242; sh: 62; ansic: 11
file content (42 lines) | stat: -rw-r--r-- 1,207 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
#.rst:
# FindTetGen
# --------
#
# Find TetGen library
#
# Find the TetGen includes and library This module defines
#
# ::
#
#   TETGEN_INCLUDE_DIRS, where to find triangle.h.
#   TETGEN_LIBRARIES, libraries to link against to use triangle.
#   TETGEN_FOUND, If false, do not try to use TETGEN.
#
#
#
#
#
#=============================================================================

find_path(TETGEN_INCLUDE_DIR tetgen.h
          DOC "The TetGen include directory")

set(TETGEN_NAMES ${TETGEN_NAMES} libtetgen tetgen tet)
find_library(TETGEN_LIBRARY NAMES ${TETGEN_NAMES}
            DOC "The TetGen library")

# handle the QUIETLY and REQUIRED arguments and set TETGEN_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TETGEN
                                  REQUIRED_VARS TETGEN_LIBRARY
                                                TETGEN_INCLUDE_DIR
                                  VERSION_VAR TETGEN_VERSION_STRING)

if(TETGEN_FOUND)
  set( TETGEN_LIBRARIES ${TETGEN_LIBRARY} )
  set( TETGEN_INCLUDE_DIRS ${TETGEN_INCLUDE_DIR} )
  add_definitions(-DTETLIBRARY)
endif()

mark_as_advanced(TETGEN_INCLUDE_DIR TETGEN_LIBRARY)