svn+ssh://lrineau@scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.6-branch ........ r57043 | sloriot | 2010-06-24 09:56:01 +0200 (Thu, 24 Jun 2010) | 3 lines bug fix: missing Compare_distance in Triangulation_euclidean_traits_XX_3.h ........ r57044 | sloriot | 2010-06-24 10:04:32 +0200 (Thu, 24 Jun 2010) | 2 lines update CHANGES ........ r57048 | sloriot | 2010-06-24 10:45:57 +0200 (Thu, 24 Jun 2010) | 2 lines add missing const (thx Sylvain) ........ r57055 | sloriot | 2010-06-24 11:43:38 +0200 (Thu, 24 Jun 2010) | 2 lines update doc ........ r57059 | lrineau | 2010-06-24 14:13:53 +0200 (Thu, 24 Jun 2010) | 2 lines Yet another typo. I hope this it the last one. ........ r57069 | lrineau | 2010-06-24 17:12:43 +0200 (Thu, 24 Jun 2010) | 2 lines cmake 2.8rc3 is published. ........ r57071 | lrineau | 2010-06-24 17:20:21 +0200 (Thu, 24 Jun 2010) | 2 lines Fix yet another typo about CGAL_AUTO_?LINK_(GMP|MPFR)... :-( ........
57 lines
2.0 KiB
CMake
57 lines
2.0 KiB
CMake
if ( NOT CGAL_GMP_SETUP )
|
|
|
|
find_package( GMP )
|
|
find_package( MPFR )
|
|
|
|
if( GMP_FOUND )
|
|
if( MPFR_FOUND )
|
|
|
|
include(CGAL_Macros)
|
|
|
|
message( STATUS "GMP include: ${GMP_INCLUDE_DIR}" )
|
|
message( STATUS "GMP libraries: ${GMP_LIBRARIES}" )
|
|
message( STATUS "GMP definitions: ${GMP_DEFINITIONS}" )
|
|
get_dependency_version(GMP)
|
|
|
|
message( STATUS "MPFR include: ${MPFR_INCLUDE_DIR}" )
|
|
message( STATUS "MPFR libraries: ${MPFR_LIBRARIES}" )
|
|
message( STATUS "MPFR definitions: ${MPFR_DEFINITIONS}" )
|
|
set( MPFR_DEPENDENCY_LIBRARIES ${GMP_LIBRARIES} )
|
|
set( MPFR_DEPENDENCY_INCLUDE_DIR ${GMP_INCLUDE_DIR} )
|
|
get_dependency_version(MPFR)
|
|
|
|
set ( CGAL_USE_GMP 1 )
|
|
set ( CGAL_USE_MPFR 1 )
|
|
|
|
add_to_cached_list(CGAL_3RD_PARTY_INCLUDE_DIRS ${MPFR_INCLUDE_DIR} )
|
|
add_to_cached_list(CGAL_3RD_PARTY_LIBRARIES_DIRS ${MPFR_LIBRARIES_DIR} )
|
|
add_to_cached_list(CGAL_3RD_PARTY_DEFINITIONS ${MPFR_DEFINITIONS} )
|
|
|
|
add_to_cached_list(CGAL_3RD_PARTY_INCLUDE_DIRS ${GMP_INCLUDE_DIR} )
|
|
add_to_cached_list(CGAL_3RD_PARTY_LIBRARIES_DIRS ${GMP_LIBRARIES_DIR} )
|
|
add_to_cached_list(CGAL_3RD_PARTY_DEFINITIONS ${GMP_DEFINITIONS} )
|
|
|
|
if ( NOT CGAL_AUTO_LINK_MPFR )
|
|
add_to_cached_list(CGAL_3RD_PARTY_LIBRARIES ${MPFR_LIBRARIES} )
|
|
endif()
|
|
if ( NOT CGAL_AUTO_LINK_GMP )
|
|
add_to_cached_list(CGAL_3RD_PARTY_LIBRARIES ${GMP_LIBRARIES} )
|
|
endif()
|
|
if ( MSVC AND NOT CGAL_AUTO_LINK_MPFR )
|
|
add_to_cached_list(CGAL_3RD_PARTY_DEFINITIONS -DCGAL_NO_AUTOLINK_MPFR )
|
|
endif()
|
|
if ( MSVC AND NOT CGAL_AUTO_LINK_GMP )
|
|
add_to_cached_list(CGAL_3RD_PARTY_DEFINITIONS -DCGAL_NO_AUTOLINK_GMP )
|
|
endif()
|
|
else( MPFR_FOUND )
|
|
|
|
message("CGAL GMP support needs MPFR. GMP will not be supported.")
|
|
|
|
endif( MPFR_FOUND )
|
|
|
|
endif( GMP_FOUND)
|
|
|
|
set( CGAL_GMP_SETUP TRUE )
|
|
|
|
endif()
|