Commit Graph

105 Commits

Author SHA1 Message Date
Andreas Fabri ed44821ba9 How did Cartesian.h sneak in again?? 2013-11-10 09:41:08 +01:00
Andreas Fabri d5f2a1d64d Switch from char* to std::string
This leads to more proper code, and we get rid of a memory leak more elegantly
2013-11-08 15:30:41 +01:00
Andreas Fabri 97d04b8f37 switch to Simple_cartesian 2013-09-05 10:56:15 +02:00
Andreas Fabri d2f0eff3cb Switch to Simple_cartesian.
Remove a superfluous .cpp
Reorder #includes
2013-08-27 09:56:39 +02:00
Andreas Fabri 876a4a5753 remove unused variables and #if 0 buggy non used code 2013-02-26 17:05:13 +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
Eric Berberich 357d6258f5 cmake's link_libraries is deprecated
removed almost all occurenced (missing UseFiles). While
doing so, some CMakeLists.txt could also be simplified. In fact
many more CMakeLists.txt can be simplified, in one of two ways:
1) add external libs to CGAL_3RD_PARTY_LIBRARIES and
2) call cgal_create_single_source_program
2012-08-03 22:32:39 +00:00
Sébastien Loriot e702f20986 Eigen 3-1 is out.
Require Eigen 3.1.0 in CMake scripts.
2012-06-27 12:38:32 +00:00
Andreas Fabri 055248b0e4 Remove unnecessary #includes 2012-01-12 16:08:02 +00:00
Sébastien Loriot 9b75cd5506 require Eigen 3.1 or greater 2011-12-22 16:06:37 +00:00
Sébastien Loriot 62ed832e2b *Add a model for SVDTraits using Eigen and use it by default. Update the doc.
*Add non-sparse matrix class (thus renamimg of the existing one)
*specialisation of the matrix class in Eigen_solver_traits according
 whether this is a symmetric or asymmetric matrix
*update use-files of lapack and Taucs to get definitions
2011-09-21 12:36:13 +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 0631943153 Uniform capitalization in our CMake script: use lowercase for commands 2011-04-28 10:36:18 +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
Marc Glisse 6db25c3642 cleanup extra ';' 2010-04-24 09:11:32 +00:00
Laurent Rineau a01063fb02 Merged revisions 54354,54363,54365,54380,54389-54390 via svnmerge from
svn+ssh://lrineau@scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.6-branch

........
  r54354 | lrineau | 2010-03-01 09:23:05 +0100 (Mon, 01 Mar 2010) | 2 lines
  
  Missing word!
........
  r54363 | lrineau | 2010-03-01 11:35:39 +0100 (Mon, 01 Mar 2010) | 3 lines
  
  Fix the issue with <boost/property_map.hpp>
  <CGAL/property_map.h> checks for the Boost version.
........
  r54365 | lrineau | 2010-03-01 14:01:18 +0100 (Mon, 01 Mar 2010) | 2 lines
  
  Let's prepare CGAl-3.6 finale version, now.
........
  r54380 | penarand | 2010-03-01 17:07:43 +0100 (Mon, 01 Mar 2010) | 3 lines
  
  replaced macros reported by check_macro_names script
........
  r54389 | lrineau | 2010-03-02 11:43:47 +0100 (Tue, 02 Mar 2010) | 3 lines
  
  http://doc.qt.nokia.com/latest/ is the permanent URL to latest Qt version
  documentation.
........
  r54390 | lrineau | 2010-03-02 11:44:44 +0100 (Tue, 02 Mar 2010) | 2 lines
  
  qpl.html no longer exists since Qt-4.4!
........
2010-03-02 15:21:52 +00:00
Sylvain Pion bf3c4c99d1 Remove obsolete makefiles, or cmake-generated makefiles that should not be under SVN. 2009-08-20 13:27:34 +00:00
Marc Pouget 843efed07f removed reference to introspect-qt from doc and examples, this is now an orphan experimental package.
Got the approval of Laurent R. for commiting
2008-12-18 12:38:21 +00:00
Laurent Saboret 0fecaae6dd - Bug fix:
Fixed link with Boost.ProgramOptions on Windows/VC++

- Code cleaning:
CGAL_USE_TAUCS #define has been moved back to CGAL_UseTAUCS.cmake

- Added back traces of third-party libraries found.
2008-11-12 17:24:24 +00:00
Laurent Rineau fa912f218c Add NOTICE: where needed, so that the test results scripts can generate a "r". 2008-11-10 11:09:21 +00:00
Laurent Rineau 38e5a4ebf5 Fix the use of Boost program options. 2008-11-10 10:23:40 +00:00
Laurent Rineau 90a4d915b1 Followup to revisions 46743-46745: fix conditional compilation, depending
on LAPACK support.
2008-11-10 10:16:23 +00:00
Fernando Cacciola 547bffecd9 Put CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS in the right place for cmake 2.4 2008-11-06 13:03:41 +00:00
Fernando Cacciola 994028ec51 Prefixed CreateSingleSourceCGALProgram.cmake with CGAL_ 2008-11-04 13:09:48 +00:00
Fernando Cacciola 145ee41079 Prefixed CGAL cmake modules with CGAL_ 2008-11-04 12:49:32 +00:00
Fernando Cacciola 70fa9503fd Added CMP0003 policy 2008-11-04 12:30:29 +00:00
Laurent Saboret 419684e402 Improved BLAS/LAPACK/TAUCS support:
- use a C++ compiler instead of a Fortran one
- compatible with CMake 2.4
2008-11-03 17:46:30 +00:00
Fernando Cacciola 6495c9da12 Rename CGAL_SetupBLAS (et al) to CGAL_UseBlas (et al) - Part 2/2 2008-10-30 16:01:16 +00:00
Fernando Cacciola f7f4320e16 Added CGAL_SetupBoostProgramOptions 2008-10-30 15:26:31 +00:00
Laurent Saboret 164adfb71d Fixed bug: AUTO_LINK_ENABLED was renamed CGAL_AUTO_LINK_ENABLED 2008-10-28 12:47:45 +00:00
Laurent Saboret 0bbfad9e5c Merge of Fernando's CMake files for BLAS/LAPACK/TAUCS with the original
FindBLAS.cmake and FindLAPACK.cmake in CMake 2.6.
The result is more or less equivalent to install_cgal's behavior.
TODO:
- use a C++ compiler instead of a Fortran one
- try to be compatible with CMake 2.4
- find CBLAS (http://www.netlib.org/cblas)?

Jet_fitting_3 and Surface_mesh_parameterization compile now with CMake
(tested on Linux/gcc and Windows/VC++ 2005).
2008-10-23 16:29:42 +00:00
Laurent Rineau f10a590672 Mass-remove vcproj files. 2008-10-21 09:21:22 +00:00
Sylvain Pion 7395c145e9 const-ification to remove warning 2008-07-30 09:39:01 +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
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
Marc Pouget 8394b7eeec default arg for testsuite 2008-01-21 08:38:37 +00:00
Sylvain Pion 838dab23ab Add missing #include <cassert> . 2008-01-20 19:13:05 +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
Marc Pouget 50d4fd22e3 dont submit AIDE 2008-01-07 10:46:40 +00:00
Laurent Saboret 9a3a41c302 Port Jet_fitting_3 and Ridges_3 to Win64 2007-08-28 15:11:43 +00:00
Fernando Cacciola 8d2b0faf24 Merged back from 3.3-branch 2007-06-06 16:13:11 +00:00
Laurent Saboret 7041d64152 Visual C++ auto-link feature for TAUCS and LAPACK 2007-05-24 14:50:24 +00:00
Marc Pouget ae52437e4b rm big file 2007-03-29 19:20:02 +00:00
Marc Pouget d0ab5571fe changed email of maintainer 2007-03-25 20:41:08 +00:00
Marc Pouget f1d6bef159 test lapack before running test 2007-03-24 15:31:25 +00:00
Marc Pouget 696f855585 Name of example program changed
added #ifdef CGAL_USE_LAPACK to test if LAPACK is installed
2007-03-22 10:25:22 +00:00