diff --git a/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt b/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt index 088140d9e66..bae9b74e175 100644 --- a/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt +++ b/Cone_spanners_2/examples/Cone_spanners_2/CMakeLists.txt @@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 2.8.10) find_package(CGAL QUIET COMPONENTS Core) -if ( CGAL_FOUND ) +if ( CGAL_FOUND AND CGAL_Core_FOUND) include( ${CGAL_USE_FILE} ) @@ -29,7 +29,7 @@ if ( CGAL_FOUND ) else() - message(STATUS "This program requires the CGAL library, and will not be compiled.") + message(STATUS "This program requires the CGAL and CGAL_Core libraries, and will not be compiled.") endif() diff --git a/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt b/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt index cbe1db9e8ca..0c40fa1edba 100644 --- a/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt +++ b/Cone_spanners_2/test/Cone_spanners_2/CMakeLists.txt @@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 2.8.10) find_package(CGAL QUIET COMPONENTS Core) -if ( CGAL_FOUND ) +if ( CGAL_FOUND AND CGAL_Core_FOUND) include( ${CGAL_USE_FILE} ) @@ -26,7 +26,7 @@ if ( CGAL_FOUND ) else() - message(STATUS "This program requires the CGAL library, and will not be compiled.") + message(STATUS "This program requires the CGAL and CGAL_Core libraries, and will not be compiled.") endif() diff --git a/Kernel_23/test/Kernel_23/Exact_predicates_exact_constructions_kernel.cpp b/Kernel_23/test/Kernel_23/Exact_predicates_exact_constructions_kernel.cpp index 7bffa75bbf4..e49e564a7bd 100644 --- a/Kernel_23/test/Kernel_23/Exact_predicates_exact_constructions_kernel.cpp +++ b/Kernel_23/test/Kernel_23/Exact_predicates_exact_constructions_kernel.cpp @@ -1,20 +1,25 @@ #include + +#if defined(CGAL_USE_CORE) || defined(CGAL_USE_LEDA) #include #include #include +#endif #include int main(){ typedef CGAL::Exact_predicates_exact_constructions_kernel EPEK; + CGAL_USE_TYPE(EPEK); + +#if defined(CGAL_USE_CORE) || defined(CGAL_USE_LEDA) typedef CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt EPEKS; typedef CGAL::Exact_predicates_exact_constructions_kernel_with_kth_root EPEKK; typedef CGAL::Exact_predicates_exact_constructions_kernel_with_root_of EPEKR; - - CGAL_USE_TYPE(EPEK); CGAL_USE_TYPE(EPEKS); CGAL_USE_TYPE(EPEKK); CGAL_USE_TYPE(EPEKR); +#endif return 0; } diff --git a/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path_traits.h b/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path_traits.h index fb3034edde8..6727fbdeabb 100644 --- a/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path_traits.h +++ b/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/Surface_mesh_shortest_path_traits.h @@ -170,6 +170,7 @@ std::ostream& operator<<(std::ostream& os, typename Surface_mesh_shortest_path_t return os << b[0] << " " << b[1] << " " << b[2]; } +#if defined(CGAL_USE_LEDA) || defined(CGAL_USE_CORE) #ifndef DOXYGEN_RUNNING // needed due to a bug in doxygen /*! \ingroup PkgSurfaceMeshShortestPathTraitsClasses @@ -217,6 +218,7 @@ public: Construct_triangle_3_along_segment_2_flattening construct_triangle_3_along_segment_2_flattening_object() const { return m_robust_flatten_triangle_3_along_segment_2; } }; #endif +#endif } // namespace CGAL diff --git a/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/function_objects.h b/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/function_objects.h index d95aa872437..c19dd8f6f00 100644 --- a/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/function_objects.h +++ b/Surface_mesh_shortest_path/include/CGAL/Surface_mesh_shortest_path/function_objects.h @@ -25,7 +25,9 @@ #include +#if defined(CGAL_USE_LEDA) || defined(CGAL_USE_CORE) #include +#endif #include #ifndef CGAL_SURFACE_MESH_SHORTEST_PATH_INTERNAL_FUNCTION_OBJECTS_H @@ -251,6 +253,7 @@ public: } }; +#if defined(CGAL_USE_LEDA) || defined(CGAL_USE_CORE) template class Robust_project_triangle_3_to_triangle_2 { @@ -280,6 +283,7 @@ public: return back_from_exact(ept3t2(to_exact(t3))); } }; +#endif template class Construct_triangle_3_along_segment_2_flattening @@ -373,6 +377,7 @@ public: } }; +#if defined(CGAL_USE_LEDA) || defined(CGAL_USE_CORE) template class Robust_flatten_triangle_3_along_segment_2 { @@ -404,6 +409,7 @@ public: return back_from_exact(eft3as2(to_exact(t3), edgeIndex, to_exact(segment))); } }; +#endif template class Compare_relative_intersection_along_segment_2 diff --git a/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt b/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt index 806a1e4c2e2..558d8763d8c 100644 --- a/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt +++ b/Surface_mesh_shortest_path/test/Surface_mesh_shortest_path/CMakeLists.txt @@ -36,7 +36,11 @@ if ( CGAL_FOUND ) endif() add_definitions( "-DCGAL_USE_BOOST_PROGRAM_OPTIONS" ) list(APPEND CGAL_3RD_PARTY_LIBRARIES ${Boost_PROGRAM_OPTIONS_LIBRARY}) - create_single_source_cgal_program( "TestMesh.cpp" ) + if(CGAL_Core_FOUND) + create_single_source_cgal_program( "TestMesh.cpp" ) + else() + message(STATUS "NOTICE: Example TestMesh.cpp requires CGAL_Core library and will not be compiled.") + endif() else() message(STATUS "NOTICE: Example TestMesh.cpp requires boost program_option and will not be compiled.") endif()