Commit Graph

79255 Commits

Author SHA1 Message Date
Guillaume Damiand 8f8cbbc84e Remove one useless dependency in LCC to Polyhedron. 2018-03-23 16:46:38 +01:00
Laurent Rineau 9ebc4c0453
Merge pull request #2897 from maxGimeno/Travis-enhance_install_sh-gf
Travis: Time enhancement
2018-03-21 17:05:31 +01:00
Laurent Rineau d266481a16
Merge pull request #2927 from lrineau/CGAL-fix_cmake_issues-lrineau
Fix CMake issues
2018-03-19 12:07:39 +01:00
Laurent Rineau 2c703b8c2f
Merge pull request #2937 from afabri/patch-2
Kernel_23: Update dependencies
2018-03-18 16:40:23 +01:00
Andreas Fabri 0b72cffc99
Update dependencies
Add a dependency because `DelaunayMeshTraits_2` is referenced (https://doc.cgal.org/latest/Kernel_23/classCGAL_1_1Projection__traits__xy__3.html)[here]
2018-03-18 16:30:44 +01:00
Laurent Rineau 471e7a93be Deal with Qt5 and Boost imported targets, when CGAL is imported
When CGAL_Qt5 or CGAL_Core targets are imported, then we need to call
`find_package(Qt5)` and `find_package(Boost)` to re-import the
targets of Qt5 or `Boost::thread`.

Otherwise, there is that CMake warning:

    CMake Warning (dev) at /mnt/testsuite/cmake/modules/CGAL_CreateSingleSourceCGALProgram.cmake:49 (add_executable):
      Policy CMP0028 is not set: Double colon in target name means ALIAS or
      IMPORTED target.  Run "cmake --help-policy CMP0028" for policy details.
      Use the cmake_policy command to set the policy and suppress this warning.

      Target "test_Min_circle" links to target "Boost::thread" but the target was
      not found.  Perhaps a find_package() call is missing for an IMPORTED
      target, or an ALIAS target is missing?
    Call Stack (most recent call first):
      CMakeLists.txt:22 (create_single_source_cgal_program)
    This warning is for project developers.  Use -Wno-dev to suppress it.

and then that link error:

    /usr/bin/ld: cannot find -lBoost::thread

Ref:
  https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.12-Ic-200/Bounding_volumes/TestReport_lrineau_Fedora-Release.gz
2018-03-16 11:42:01 +01:00
Laurent Rineau 9708c41ad1 Off-topic, Mesh_3: fix a bug in detect_features
The commit cba3b1c20c from the PR #2336
was incomplete: there are two overloads of `sharp_call(..)` and it
fixed only one occurrence.
2018-03-15 15:27:07 +01:00
Laurent Rineau af6d9ab3bb Better calls to find_package(Boost) for CGAL::CGAL_Core 2018-03-14 23:07:02 +01:00
Laurent Rineau 68a48e6b91 Remove obsolete code
Now that we use imported target, or aliases, then that code with lots
of `find_package` is no longer used.
2018-03-14 23:06:19 +01:00
Laurent Rineau b4534f51b4 Remove the duplicate -DCGAL_HEADER_ONLY 2018-03-14 23:06:01 +01:00
Laurent Rineau de1753566b Speed improvement with CGAL_HEADER_ONLY and WITH_{tests|examples}..
When `CGAL_HEADER_ONLY` and `WITH_{examples|tests|demos}`, then only
the first call to `find_package(CGAL)` does the job. The subsequent
calls return very fast, by caching the results in global properties.
2018-03-14 23:04:09 +01:00
Laurent Rineau c17e0497ae Store values in global properties
When `WITH_{examples|demos|tests}` is `ON`, `CGAL_SCM.cmake` is
included by each sub-directory. With this patch, the values of
`CGAL_SCM_BRANCH_NAME` and `CGAL_CREATED_GIT_HASH` are stored in
global properties, and retrieved, instead of forking two `git` at each
use of the module.
2018-03-14 22:38:05 +01:00
Laurent Rineau 4070f70d4b Fix issue #1580
Fix the issue "CMake error when WITH_CGAL_Qt5 is set to ON then
OFF" (#1580).

The previous CMake code was using a `file(GLOB)` to discover the list
of configured libraries, whereas that list is known by CMake.
2018-03-14 16:33:11 +01:00
Laurent Rineau e60ad2ac48 Fix bug introduced by PR #2846
If one tries to configure CGAL libraries with `CGAL_HEADER_ONLY=ON`,
but with `WITH_{examples|demos}` then one must define the target
`CGAL_Qt5_moc_and_resources`.

The bug was introduced by:
https://github.com/CGAL/cgal/pull/2846/files#diff-1f18376f411977629f9d9d36d018438dL54
2018-03-14 15:35:27 +01:00
Laurent Rineau 72a6f22a38 Merge branch 'releases/CGAL-4.11-branch' 2018-03-09 18:42:09 +01:00
Laurent Rineau e687e38d9c Merge pull request #2911 from lrineau/CGAL-prefix_CMake_options_with_CGAL-GF
Prefix CMake options with `CGAL_`
2018-03-09 18:41:24 +01:00
Laurent Rineau a06d390fd4 Merge pull request #2910 from luis4a0/Algebraic_kernel_d-RS_MPFR_compatibility-Luis
Algebraic kernel d RS-Fix compatibility of MPFR, MPFI and RS.
2018-03-09 18:41:16 +01:00
Laurent Rineau ba041a5dc1 Merge pull request #2909 from maxGimeno/Demo-Selection_item_tooltip-GF
Polyhedron demo: Fix tooltip for selection item
2018-03-09 18:41:08 +01:00
Laurent Rineau d9a966287e Merge pull request #2908 from maxGimeno/Demo-Fix_aabb_plugin-GF
Polyhedron demo: Fix cut plugin
2018-03-09 18:40:57 +01:00
Laurent Rineau 0e6d6ce3f8 Merge pull request #2907 from maxGimeno/Surface_mesh_parameterization-Fix_orbifold_example-GF
Surface_mesh_parameterization: Fix CMakeLists.txt for orbifold example
2018-03-09 18:40:49 +01:00
Laurent Rineau bd8b77e385 Merge pull request #2906 from maxGimeno/Scripts-Fix_typo-GF
Scripts: Fix typo
2018-03-09 18:40:41 +01:00
Laurent Rineau b4bfda04ca Merge pull request #2905 from maxGimeno/c3t3_item-Fix-GF
Polyhedron_demo : Add a check before trying to load a cdt_3 to avoid crashing
2018-03-09 18:40:34 +01:00
Laurent Rineau c3ac7f70c4 Merge pull request #2904 from maxGimeno/Demo-Fix_rotation_point-GF
Polyhedron demo: More fixes for the Viewer
2018-03-09 18:40:26 +01:00
Laurent Rineau 3fc4a8ea35 Merge pull request #2903 from maxGimeno/Fix_doc_ts_display-GF
Documentation: change header

# Conflicts:
#	Documentation/doc/scripts/testsuite.py
2018-03-09 18:40:05 +01:00
Laurent Rineau 4a7966d145 Merge pull request #2860 from lrineau/Installation-fix_check_headers-GF
Fix CGAL_ENABLE_CHECK_HEADERS, again
2018-03-09 18:39:26 +01:00
Laurent Rineau 977338c528 Merge pull request #2914 from afabri/BSOP-typos-GF
Boolean Set Operations: Fix typos
2018-03-09 18:39:18 +01:00
Laurent Rineau 29747165f7 Merge pull request #2903 from maxGimeno/Fix_doc_ts_display-GF
Documentation: change header
2018-03-09 18:39:08 +01:00
Laurent Rineau cb9f03a93f Merge pull request #2910 from luis4a0/Algebraic_kernel_d-RS_MPFR_compatibility-Luis
Algebraic kernel d RS-Fix compatibility of MPFR, MPFI and RS.
2018-03-09 18:38:58 +01:00
Laurent Rineau ed0976600b Fix dependencies 2018-03-09 10:03:58 +01:00
Andreas Fabri 6334cde1d7 fix typos -> links 2018-03-08 15:16:36 +00:00
Luis Peñaranda a8c8d6f152 Fix MPFR/MPFI check when MPFI is not present. 2018-03-08 10:05:26 -03:00
Maxime Gimeno 491243a24f update available operations when selecting boundary edges or inverting selection 2018-03-08 12:14:32 +01:00
Laurent Rineau f12b3bf302 Prefix CMake options with `CGAL_`
- in `examples/Mesh_3/`,
- in `examples/Point_set_processing_3/`,
- in `demo/Polyhedron/`, and
- in `demo/Triangulation_3/`.
2018-03-08 12:07:49 +01:00
Luis Peñaranda 6200edcfaf Forbid MPFR 3.1.[3456] when using RS. 2018-03-08 10:12:42 +01:00
Luis Peñaranda ec8ddadac8 Check that MPFR/MPFI versions match.
MPFI >=1.5.2 only works with MPFR >=4.0.0.
MPFI < 1.5.2 only works with MPFR < 4.0.0.
This check is performed at CMake level, when configuring MPFI.
2018-03-08 10:12:42 +01:00
Maxime Gimeno d76ba39104 Fix selection_item tooltip so it shows the number of selected simplices 2018-03-07 16:20:05 +01:00
Laurent Rineau c741950dd2 Merge pull request #2901 from sloriot/Demo-add_exp_autorefinement
Add actions to use autorefinement
2018-03-07 16:06:13 +01:00
Laurent Rineau 657884876f Merge pull request #2900 from sloriot/PMP-rm_si_improvements
Improve removal of self-intersections for the demo plugin
2018-03-07 16:06:05 +01:00
Laurent Rineau a06da39885 Merge pull request #2868 from afabri/CGAL-remove_SCL_SECURE_NO_DEPRECATE-GF
Fixes after removing -D_SCL_SECURE_NO_DEPRECATE
2018-03-07 16:05:48 +01:00
Laurent Rineau b141cbd1ef Fix the dependencies, again 2018-03-07 15:59:45 +01:00
Maxime Gimeno 60e6e4b35d add missing curly brackets 2018-03-07 14:13:44 +01:00
Maxime Gimeno 0112d692ab Fix CMakeLists.txt for orbifold example 2018-03-07 13:32:44 +01:00
Maxime Gimeno b407e407c7 Fix tyo 2018-03-07 13:19:51 +01:00
Maxime Gimeno 4ce3a55096 Add a check before trying to load a cdt_3 to avoid crashing. 2018-03-07 11:00:49 +01:00
Maxime Gimeno 2b250c5d07 Fix the RotationPoint setting. 2018-03-07 09:52:47 +01:00
Maxime Gimeno 2ec9b106aa Back port the modifications of header. 2018-03-07 08:36:12 +01:00
Sébastien Loriot a66834b976 add actions to use autorefinement 2018-03-06 19:30:25 +01:00
Laurent Rineau 35713c6b04 Fix the dependencies 2018-03-06 19:13:29 +01:00
Laurent Rineau 0a74393dcf Commit all new dependencies files 2018-03-06 18:44:48 +01:00
Laurent Rineau 3768e905ae Fix CGAL_ENABLE_CHECK_HEADERS
List of the fixes:

- The headers from the .cpp files were not processed (wrong regular
  expression for `awk`),

- `CGAL_COMPUTE_DEPENDENCIES` is now removed (unified with
  `CGAL_ENABLE_CHECK_HEADERS`).

- All `dependencies` files has an empty line (because of
  `include/CGAL/version.h` in the build directory).

- Fix the name of the target `pkg_<package>_deps`
2018-03-06 18:43:39 +01:00