Commit Graph

45 Commits

Author SHA1 Message Date
Laurent Rineau e5001d1a50 update our CMake version 3.18...3.31
That will suppress the warnings about `CMP0167` (from CMake 3.30):

```
CMake Warning (dev) at cmake/modules/display-third-party-libs-versions.cmake:37 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
```
2025-02-04 14:32:37 +01:00
Laurent Rineau 3a223ebd1e cmake_minimum_required(VERSION 3.12...3.29) 2024-06-06 20:19:44 +02:00
Andreas Fabri 25b084e146 Fix operator<< for Multipolygon_with_holes 2024-02-23 07:52:05 +00:00
Sébastien Loriot 6c703f7fd8 Polygon_repair_2 -> Polygon_repair 2023-08-24 13:35:51 +02:00
Andreas Fabri 879b7ea139 Add WKT support for Multipolygon_with_holes 2023-07-20 10:51:51 +01:00
Laurent Rineau 2288225448 Massive update of CMake policies to version 3.23 2022-05-06 09:34:35 +02:00
Andreas Fabri 31ad9a98a4 Stream_support: clean up the examples for WKT 2022-02-22 15:06:03 +00:00
Andreas Fabri 79a38d5cb9 CGAL Examples: CGAL_assertion -> assert 2022-01-24 10:19:04 +00:00
Sébastien Loriot ab48f63e30 update latest cmake version tested 2021-11-09 10:58:47 +01:00
Laurent Rineau 89f775c699 Merge pull request #6085 from lrineau/Stream_support-fix_examples_CMakeLists.txt-GF
Fix a bad merge from PR "Re-organize I/O #4255"
2021-11-04 18:21:54 +01:00
Laurent Rineau 584957eb19 Fix a bad merge from PR "Re-organize I/O #4255"
Before my fix, the CMakeLists.txt could be sum-up that way:

```cmake
find_package(CGAL REQUIRED)
find_package(Boost QUIET)

if(NOT Boost_FOUND)
  message(
    STATUS "This project requires the Boost library, and will not be compiled.")

    create_single_source_cgal_program( "Point_WKT.cpp" )
    # [...]
else ()
  message(STATUS "This project requires the CGAL library, and will not be compiled.")
  return()
endif()
```

So, on *all platform*, as Boost is mandatory and always found, the
behavior was to display "This project requires the CGAL library, and
will not be compiled." and return, without configuring any target.

I have simplified the `CMakeLists.txt` to the simplest:

```cmake
cmake_minimum_required(VERSION 3.1...3.20)
project(Stream_support_Examples)

find_package(CGAL REQUIRED)

create_single_source_cgal_program( "Point_WKT.cpp" )
```

- `cmake_minimum_required` is mandatory and must be the first line,
- `project` is mandatory,
- `find_package(CGAL REQUIRED)`: no need to test `CGAL_FOUND`, because
  CGAL is required anyway. No need to search for Boost, because that is
  an implementation detail of CGAL, and the CMake file
  `CGALConfig.cmake` deals with that dependency
- and then the declaration of the targets.
2021-10-27 12:03:36 +02:00
Maxime Gimeno a3d1765ab4 Merge remote-tracking branch 'cgal/master' into CGAL-Clean_up_boost_versions-maxGimeno 2021-07-19 14:18:40 +02:00
Maxime Gimeno e6c767d5c9 Simplify the GNUC versions tests 2021-05-12 15:45:07 +02:00
Maxime Gimeno 393ae7dae6 Clean-up boost_version reqs 2021-05-12 15:03:53 +02:00
Sébastien Loriot 4e519a3c7a move documented IO functions in IO namespace 2021-05-05 13:15:37 +02:00
Sébastien Loriot fb6f703b55 IO namespace for files in IO directories 2021-05-04 14:36:06 +02:00
Maxime Gimeno c49152359c update max version of cmake and announce the new minimal in CHANGE.md 2021-04-15 15:08:54 +02:00
Maxime Gimeno 277b8cc74b Fix OFF_reading 2020-11-25 13:40:19 +01:00
Maxime Gimeno 3b70343590 Merge remote-tracking branch 'cgal/master' into CGAL_IO-maxGimeno 2020-11-16 16:19:43 +01:00
Mael Rouxel-Labbé 7922f048a4 Fixed VRML/Inventor stream API (need to be compatible with the generic writer) 2020-10-14 19:25:48 +02:00
Mael Rouxel-Labbé f99016972e Fix using old version of renamed function 2020-10-14 11:02:35 +02:00
Maxime Gimeno 9c15f2c9dc Use FeatureSummary in the demo, and remove CGAL_FOUND 2020-08-04 12:46:17 +02:00
Mael Rouxel-Labbé 580a1efd5c Remove trailing whitespace / tabs 2020-05-22 15:31:50 +02:00
Sébastien Loriot 0779373835 extra run of the script to remove tabs and trailing whitespaces
right after the  merge of 4.14 release branch

+ manual fix on one line in:
    * Arrangement_on_surface_2/include/CGAL/IO/Arr_text_formatter.h
    * .travis/generate_travis.sh
2020-03-26 14:16:06 +01:00
Mael Rouxel-Labbé 135595ca92 Misc cleaning 2020-01-24 23:17:33 +01:00
Mael Rouxel-Labbé 828e47f61e Fix some header includes 2020-01-17 17:55:53 +01:00
Mael Rouxel-Labbé 5ca88dedc3 Move some examples from Polyhedron to Stream_support
(as they don't make use of CGAL::Polyhedron_3)
2020-01-17 14:02:24 +01:00
Andreas Fabri 9a330fd140 Stream_support: Fix reading WKT POLYGON 2019-12-05 16:17:37 +01:00
Sébastien Loriot 9a0bff4008 remove BOOST_FOREACH added by recent PRs 2019-11-04 10:59:15 +01:00
Laurent Rineau 4fbf00fb8a CMake>=3.13: opt for for new policies up to 3.15 2019-06-19 14:34:59 +02:00
Laurent Rineau 44ea54db97 Merge pull request #3931 from afabri/Stream_support-parseXML-GF
Stream_support:  Add example to read an xml file using boost::property_tree
2019-06-05 11:20:26 +02:00
Andreas Fabri be1ad4b855 Stream_support: Show how to read an xml file using boost::property_tree 2019-05-14 11:21:10 +02:00
Maxime Gimeno 6481c61bd0 Fix CMakeLists 2019-05-06 10:17:46 +02:00
Andreas Fabri 016df7e33c Fix CMakeLists.txt 2019-04-15 12:06:50 +02:00
Maxime Gimeno 422cd589c1 Add missing includes to get BOOST_VERSION and BOOST_GCC 2019-04-03 10:27:55 +02:00
Maxime Gimeno e107612c31 Fix pre processor test 2019-01-10 08:54:49 +01:00
Maxime Gimeno 743569f854 Also disable WKT if gcc version is <4.5 2019-01-09 16:32:08 +01:00
Maxime Gimeno 63c35e7e28 fixes for old boost 2018-11-29 12:02:15 +01:00
Maxime Gimeno 080f63b1b8 Disable WKT for boost < 1.56 2018-11-07 11:58:50 +01:00
Maxime Gimeno 9bf2bdd3a4 Clean up 2018-11-05 11:44:30 +01:00
Maxime Gimeno 27b7c318fb - Remove TODOs,
- Only support Cartesian kernels
- replace boost included header
2018-07-17 13:55:12 +02:00
Andreas Fabri 2616b89a7b Switch to WKT in the polyline simplification demo 2018-05-15 10:04:24 +02:00
Maxime Gimeno 8f3724c011 Add a global reading function 2018-05-15 10:04:23 +02:00
Maxime Gimeno df980abff6 Add WKT IO to 2D demos and add saving to stream_lines_2_demo
Also adds traits for Point_3 to be able to interract with weighted points through them.
2018-05-15 10:04:23 +02:00
Maxime Gimeno 14ef2163c4 Move everything to Stream_support 2018-05-15 10:04:23 +02:00