File: FindCORE.cmake

package info (click to toggle)
cgal 6.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 144,952 kB
  • sloc: cpp: 811,597; ansic: 208,576; sh: 493; python: 411; makefile: 286; javascript: 174
file content (23 lines) | stat: -rw-r--r-- 744 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
# Try to find the CORE libraries
# CORE_FOUND - system has CORE lib
# CORE_INCLUDE_DIR - the CORE include directory
# CORE_LIBRARIES - Libraries needed to use CORE

# CORE needs GMP
include(FindPackageHandleStandardArgs)

if(GMP_FOUND)
  if (CORE_INCLUDE_DIR AND CORE_LIBRARIES)
    # Already in cache, be silent
    set(CORE_FIND_QUIETLY TRUE)
  endif (CORE_INCLUDE_DIR AND CORE_LIBRARIES)

  find_path(CORE_INCLUDE_DIR NAMES CORE.h DOC "The directory containing the CORE include files")

  find_library(CORE_LIBRARIES NAMES core++ DOC "Path to the core++ library")

  get_filename_component(CORE_LIBRARIES_DIR ${CORE_LIBRARIES} PATH)

  FIND_PACKAGE_HANDLE_STANDARD_ARGS(CORE "DEFAULT_MSG" CORE_LIBRARIES CORE_INCLUDE_DIR )

endif(GMP_FOUND)