/usr/lib/CGAL/FindRS.cmake is in libcgal-dev 4.2-5ubuntu1.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | # RS needs GMP 4.2 or newer, this script will fail if an old version is
# detected
if( NOT GMP_FOUND )
find_package( GMP )
endif()
if( NOT MPFI_FOUND )
find_package( MPFI )
endif()
if( MPFI_FOUND )
include( CGAL_VersionUtils )
find_path(RS_INCLUDE_DIR
NAMES rs_exports.h
HINTS ENV RS_INC_DIR
ENV RS_DIR
PATH_SUFFIXES include
DOC "The directory containing the RS include files"
)
find_library(RS_LIBRARIES
NAMES rsexport_rs
HINTS ENV RS_LIB_DIR
ENV RS_DIR
PATH_SUFFIXES lib
DOC "Path to the RS library"
)
get_dependency_version( GMP )
IS_VERSION_LESS("${GMP_VERSION}" "4.2.0" _IS_GMP_VERSION_TO_LOW)
if(_IS_GMP_VERSION_TO_LOW)
message( STATUS
"RS needs GMP>=4.2. Your GMP version is ${GMP_VERSION}." )
else(_IS_GMP_VERSION_TO_LOW)
if( RS_INCLUDE_DIR AND RS_LIBRARIES )
set(RS_FOUND TRUE)
endif( RS_INCLUDE_DIR AND RS_LIBRARIES )
if( RS_LIBRARIES )
get_filename_component(RS_LIBRARIES_DIR ${RS_LIBRARIES} PATH CACHE )
endif( RS_LIBRARIES )
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args( RS
"DEFAULT_MSG"
RS_LIBRARIES
RS_INCLUDE_DIR )
endif(_IS_GMP_VERSION_TO_LOW)
else( MPFI_FOUND )
message( STATUS "RS requires MPFI" )
set( RS_FOUND FALSE )
endif( MPFI_FOUND )
if(RS_FOUND)
set(RS_USE_FILE "CGAL_UseRS")
endif(RS_FOUND)
|