/usr/lib/CGAL/FindCORE.cmake is in libcgal-dev 4.5-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # 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
# TODO: support Windows and MacOSX
# 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)
|