Commit Graph

53 Commits

Author SHA1 Message Date
Sébastien Loriot 7d20531b1d Convert remaining CRLF files to LF 2012-12-04 17:09:28 +01:00
Laurent Rineau 2db4effa7e CMake: Fix the handling of cmake_policy
That is a followup-to my commit last year:
  | ------------------------------------------------------------------------
  | r63198 | lrineau | 2011-04-28 19:45:22 +0200 (Thu, 28 Apr 2011) | 5 lines
  | 
  | Try to fix my last revision about cmake_policy, with CMake-2.6.x
  | 
  | CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
  | x.y.z is greater than the current CMake version.
  | 
  | ------------------------------------------------------------------------

The following check:
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6)
is useless just after a call to:
 cmake_minimum_required(VERSION 2.6.2)



The script used to fix that was:


#!/usr/bin/env perl

$replacement=<<'END';
if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}" VERSION_GREATER 2.8.3)
  cmake_policy(VERSION 2.8.4)
else()
  cmake_policy(VERSION 2.6)
endif()
END

while(<>) {
    if(/if\("\${CMAKE_MAJOR_VERSION}.\${CMAKE_MINOR_VERSION}" VERSION_GREATER 2.6\)/) {
        while(<>) {
            if(/^endif\(\)/) {
                print "$replacement";
                while(<>) {
                    print;
                }
                exit 0
            }
        }
    }
    print;
}
2012-08-22 12:35:03 +00:00
Laurent Rineau 8f59fd9592 Turn QPL into LGPLv3+ 2012-01-13 16:33:35 +00:00
Laurent Rineau 88ef561715 Fix the call to Q_INIT_RESOURCE
For resources that are shipped by the CGAL_Qt4 library, one need to call
CGAL_QT4_INIT_RESOURCES, a macro that calls CGAL_Qt4_init_resources
(exported by the CGAL_Qt4 DLL)
2011-10-11 09:51:29 +00:00
Laurent Rineau 3c02e07b23 Try to fix my last revision about cmake_policy, with CMake-2.6.x
CMake gives an error if one tries to use cmake_policy(VERSION x.y.z) if
x.y.z is greater than the current CMake version.
2011-04-28 17:45:22 +00:00
Laurent Rineau c97205f085 Global handling of CMake policies (second part)
We declare 
  cmake_minimum_required(VERSION 2.6.2)
but we also use
  cmake_policy(VERSION 2.8.4)
to declare that our CMake scripts are OK with all the defaults of CMake policies
as of CMake-2.8.4. That shuts down the warnings of CMake-2.8.4.

That way, we no longer need any declaration of specific policies.

Those two lines must be present and maintained in all our CMakeLists.txt
files (the one for the libraries, and also the one for examples and demos,
and maybe tests).
2011-04-28 10:55:56 +00:00
Laurent Rineau ca5c92e034 Global maintenance of CMakeLists.txt: CMake minimal version is -2.6.2
The documentation of CGAL says that the minimal version of CMake must be
CMake-2.6.2.
  - change cmake_minimum_required to VERSION 2.6.2
  - no longer any need for the policy CMP0003 (was for 2.4.x)
  - no longer any need for CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS (was for 2.4)
2011-04-27 17:58:27 +00:00
Laurent Rineau af3ad196a0 Global fix of all uses of qt4_generate_moc: the destination file path must be absolute. 2010-08-11 13:24:20 +00:00
Pierre Alliez 1994bc807c pca demo: fix warning. 2009-09-05 13:09:34 +00:00
Pierre Alliez d99e73c957 PCA QT4 demo: render centroid, line and plane. 2009-08-07 19:55:06 +00:00
Pierre Alliez c9b1327a19 PCA demo: fit plane to vertices, edges and facets. 2009-07-31 20:42:39 +00:00
Pierre Alliez 349d976629 PCA demo: skeleton in place. 2009-07-31 12:37:20 +00:00
Pierre Alliez c68470ad34 PCA: remove old demos - I am preparing a new one based upon qt4 2009-07-31 12:18:18 +00:00
Laurent Rineau c1e2800cb3 demo/PCA no longer has a demo. That has been merged in the Polygon demo. 2008-10-30 10:47:01 +00:00
Andreas Fabri 90edaad0d0 PCA demo is now part of the Polygon demo 2008-10-17 13:48:16 +00:00
Laurent Rineau a9f67f82b5 4th pass to remove CGAL_USE_QT: remove "#ifdef CGAL_USE_QT"/"#endif" 2008-09-09 21:53:57 +00:00
Laurent Rineau a302cff5c8 Second pass to remove CGAL_USE_QT: remove "#ifndef CGAL_USE_QT"/"#else"/"#endif // CGAL_USE_QT" 2008-09-09 21:42:42 +00:00
Fernando Cacciola f93437ca22 Removed *unmodified* auto-generated CMakeLists.txt (now created by create_internal_release) 2008-05-05 14:01:55 +00:00
Sylvain Pion 73738c8a19 Replace PCA_dimension_0_tag and similar by the kernel's Dimension_tag<dim>. 2008-04-11 19:41:37 +00:00
Fernando Cacciola b704509dcf Examples/Demos/Test CMake scripts updated 2008-03-05 21:14:02 +00:00
Fernando Cacciola a659cd852a Added project() and conditional test for CGAL_DIR 2008-02-14 15:42:36 +00:00
Fernando Cacciola 14043c43a0 Replaced CGALROOT by CGAL_DIR (the latters is used by CMake automatically) 2008-02-08 17:47:21 +00:00
Fernando Cacciola afddfc4fca CMake scripts for demos/examples/test added 2008-02-06 19:06:24 +00:00
Sylvain Pion 50ed4bb632 Use <cstdlib> and <cstdio> consistently instead of <stdio.h> and <stdlib.h>. 2008-01-18 20:33:57 +00:00
Pierre Alliez 55649f94c3 PCA: fix demo and list of changes 2008-01-18 09:15:41 +00:00
Pierre Alliez 68a98177ce PCA: update demos + test 2008-01-18 09:08:53 +00:00
Pierre Alliez e02cb6172a PCA: simplified interface in 3D 2008-01-16 16:41:58 +00:00
Andreas Meyer fdeedcf8b0 some low level code cleanup. renamed
* CGAL_error to CGAL_error_msg
* introduced a macro CGAL_error()
* added some words about CGAL_error to the developers manual
* renamed most of assert(x) into CGAL_assertion(x)
* renamed exit(x) with x != 0 , CGAL_assertion(false) and assert(false) into CGAL_error
* CORE left untouched, OpenNL changed
2007-11-07 16:51:18 +00:00
Fernando Cacciola 88111fcf70 VS project files merged back 2007-06-06 15:35:17 +00:00
Ankit Gupta 2aa37cfc1b M Principal_component_analysis/include/CGAL/centroid.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_segments_2.h
M    Principal_component_analysis/demo/Principal_component_analysis/linear_least_squares_fitting.cpp

Made modifications to remove compilation errors.
2007-06-06 12:38:23 +00:00
Ankit Gupta 9584e4e0af Added PCA for 3d. Also added tags for dimensions 0,1,2 and 3.
A    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_tetrahedrons_3.h
A    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_spheres_3.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_points_2.h
M    Principal_component_analysis/include/CGAL/centroid.h
A    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_points_3.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_2.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_3.h
M    Principal_component_analysis/include/CGAL/util.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_circles_2.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_segments_2.h
A    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_segments_3.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_rectangles_2.h
A    Principal_component_analysis/include/CGAL/PCA_tags.h
M    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_triangles_2.h
A    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_triangles_3.h
A    Principal_component_analysis/include/CGAL/linear_least_squares_fitting_cuboids_3.h
D    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_segments.cpp
D    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_rectangles.cpp
D    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_triangles.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_spheres_3.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_points_2.cpp
M    Principal_component_analysis/examples/Principal_component_analysis/centroid.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_points_3.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_circles_2.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_ankit.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_segments_2.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_segments_3.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_rectangles_2.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_triangles_2.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_cuboids_3.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_triangles_3.cpp
D    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting.cpp
D    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_circles.cpp
A    Principal_component_analysis/examples/Principal_component_analysis/linear_least_squares_fitting_tetrahedrons_3.cpp
2007-05-30 10:07:56 +00:00
Pierre Alliez 212b8fd439 added few models for the demo 2007-05-23 15:23:27 +00:00
Andreas Fabri ea71b8eaa1 .C ->.cpp and autolinking 2007-04-11 13:59:20 +00:00
Andreas Fabri d8183fce31 help SunPro 2007-03-19 11:25:48 +00:00
Joachim Reichel d08f6bea45 replace obsolete variable CGAL_QT_LDFLAGS by CGAL_LDFLAGS 2007-03-11 09:54:17 +00:00
Sylvain Pion b2630cd7e1 Apply trailing whites-spaces and leadgin+trailing empty-lines cleanups
to demo/**/*.h and .cpp.
2007-03-10 16:55:12 +00:00
Andreas Fabri d3132b1fe6 changed .C to .cpp in examples 2006-07-09 19:39:06 +00:00
Sylvain Pion 5f8d18ffd4 Uniformize '# CGAL_MAKEFILE' line. 2006-05-20 07:52:02 +00:00
Laurent Saboret e42659d1a4 Fixed svn:executable, svn:keywords and svn:eol-style properties of the whole trunk 2006-05-04 09:15:26 +00:00
Andreas Fabri f1ee95b8b4 upgrade to VC7.3 and fixes 2006-04-25 21:38:06 +00:00
Laurent Saboret 87d65f75e3 Fixed svn properties of ASCII files (as defined by Maintenance/svn_client/config) 2006-04-18 12:42:52 +00:00
Pierre Alliez 03eeb9c6e7 Andreas: thanks for the QT demo!
I removed a little warning in it.
2006-04-04 15:14:21 +00:00
Andreas Fabri c1c0b1906e Added the demo 2006-03-29 08:21:25 +00:00
Pierre Alliez 92bf6d552d removed command-line demo folder 2006-03-20 08:51:30 +00:00
Pierre Alliez 04826e29aa tests performed for points on a line in 2D
Doc: added definitions, did many fixes.
IMPORTANT: sylvain: double-check the definitions, and precise the dimension and types available for each of your function.

important change: I suggest to rename the function bounding_box to axis_aligned_bounding_box (min case later you will hack on the general one).
2006-03-16 22:52:57 +00:00
Joachim Reichel f582718758 rename create_makefile to cgal_create_makefile to avoid name clashes,
adjust all occurences of create_makefile and create\_makefile in the entire
repository (well, trunk only)
2006-03-15 22:10:02 +00:00
Pierre Alliez 5af27d0125 fixed eigen_2 directly (all symmetric positive definite matrices have in theorie real and positive eigenvalues). 2006-03-14 21:06:22 +00:00
Pierre Alliez 4eb5dbd763 fixed a case where an eigen value is negative due to numerical issues (floating point numbers are terrible). 2006-03-14 19:08:47 +00:00
Pierre Alliez d9870f2063 fixed eigen_2 (special case correctly handled) 2006-03-02 10:44:47 +00:00
Pierre Alliez a4d4c308dd cleanup on 2D line fitting 2006-03-01 16:32:51 +00:00