From 0e053a4023cd2e168f38e47ca5afe868d44530bd Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 30 Nov 2018 16:20:37 +0100 Subject: [PATCH] First step to support LEDA instead of CGAL_Core --- CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt | 8 ++++++-- Kernel_23/test/Kernel_23/CMakeLists.txt | 2 +- Kernel_23/test/Kernel_23/include/CGAL/Precise_numbers.h | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt b/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt index b6419a7476c..80fcb5d2695 100644 --- a/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt +++ b/CGAL_ipelets/demo/CGAL_ipelets/CMakeLists.txt @@ -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) diff --git a/Kernel_23/test/Kernel_23/CMakeLists.txt b/Kernel_23/test/Kernel_23/CMakeLists.txt index 47e33a4d04f..4a2dec20634 100644 --- a/Kernel_23/test/Kernel_23/CMakeLists.txt +++ b/Kernel_23/test/Kernel_23/CMakeLists.txt @@ -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") diff --git a/Kernel_23/test/Kernel_23/include/CGAL/Precise_numbers.h b/Kernel_23/test/Kernel_23/include/CGAL/Precise_numbers.h index 750164f104c..954c5bb4a74 100644 --- a/Kernel_23/test/Kernel_23/include/CGAL/Precise_numbers.h +++ b/Kernel_23/test/Kernel_23/include/CGAL/Precise_numbers.h @@ -23,6 +23,7 @@ #ifndef CGAL_PRECISE_NUMBERS_H #define CGAL_PRECISE_NUMBERS_H +#include #if defined CGAL_USE_GMPXX # include typedef mpz_class Precise_integer;