First step to support LEDA instead of CGAL_Core

This commit is contained in:
Laurent Rineau 2018-11-30 16:20:37 +01:00
parent 84151fe9b3
commit 0e053a4023
3 changed files with 8 additions and 3 deletions

View File

@ -128,7 +128,9 @@ if ( CGAL_FOUND )
set(CGAL_IPELETS ${CGAL_IPELETS} circle_pencils)
set(CGAL_IPELETS ${CGAL_IPELETS} hyperbolic)
set(CGAL_IPELETS ${CGAL_IPELETS} distance)
set(CGAL_IPELETS ${CGAL_IPELETS} cone_spanners)
if(CGAL_Core_FOUND)
set(CGAL_IPELETS ${CGAL_IPELETS} cone_spanners)
endif()
if ( IPELET_INSTALL_DIR )
@ -149,7 +151,9 @@ if ( CGAL_FOUND )
endif ()
cgal_add_compilation_test(CGAL_${IPELET})
endforeach(IPELET)
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL_Core)
if(CGAL_Core_FOUND)
target_link_libraries(CGAL_cone_spanners PRIVATE CGAL::CGAL_Core)
endif()
#example in doc not installed
add_library(simple_triangulation MODULE simple_triangulation.cpp)
add_to_cached_list(CGAL_EXECUTABLE_TARGETS simple_triangulation)

View File

@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.1)
find_package(CGAL QUIET COMPONENTS Core)
if ( CGAL_FOUND AND CGAL_Core_FOUND)
if ( CGAL_FOUND )
include(${CGAL_USE_FILE})
include_directories (BEFORE "include")

View File

@ -23,6 +23,7 @@
#ifndef CGAL_PRECISE_NUMBERS_H
#define CGAL_PRECISE_NUMBERS_H
#include <CGAL/config.h>
#if defined CGAL_USE_GMPXX
# include <CGAL/gmpxx.h>
typedef mpz_class Precise_integer;