mirror of https://github.com/CGAL/cgal
print_<PKG>_version committed
This commit is contained in:
parent
1f363da4ab
commit
2e9a8d6f5f
|
|
@ -1582,6 +1582,13 @@ CMake/cmake/modules/OptionalAddSubdirectory.cmake -text
|
|||
CMake/cmake/modules/Qt3Macros.cmake -text
|
||||
CMake/cmake/modules/ReadLines.cmake -text
|
||||
CMake/cmake/modules/UseCGAL.cmake -text
|
||||
CMake/config/support/print_BOOST_version.cpp -text
|
||||
CMake/config/support/print_GMP_version.cpp -text
|
||||
CMake/config/support/print_MPFR_version.cpp -text
|
||||
CMake/config/support/print_OPENGL_version.cpp -text
|
||||
CMake/config/support/print_QT_version.cpp -text
|
||||
CMake/config/support/print_TAUCS_version.cpp -text
|
||||
CMake/config/support/print_ZLIB_version.cpp -text
|
||||
CMake/src/CGALPDB/CMakeLists.txt -text
|
||||
CMake/src/CGALQt/CMakeLists.txt -text
|
||||
CMake/src/CGALimageIO/CMakeLists.txt -text
|
||||
|
|
|
|||
|
|
@ -0,0 +1,37 @@
|
|||
// Copyright (c) 2005 Utrecht University (The Netherlands),
|
||||
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
|
||||
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
|
||||
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
|
||||
// and Tel-Aviv University (Israel). All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://fcacciola@scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_BOOST.cpp $
|
||||
// $Id: test_BOOST.cpp 32424 2006-07-12 09:26:22Z spion $
|
||||
//
|
||||
//
|
||||
// Author(s) : Sylvain Pion
|
||||
|
||||
// Tests if BOOST is available.
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/version.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "version=" << BOOST_VERSION/100000 << "."
|
||||
<< ((BOOST_VERSION / 100) % 100) << "."
|
||||
<< BOOST_VERSION % 100 << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
// Copyright (c) 2004 Utrecht University (The Netherlands),
|
||||
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
|
||||
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
|
||||
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
|
||||
// and Tel-Aviv University (Israel). All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://fcacciola@scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_GMP.cpp $
|
||||
// $Id: test_GMP.cpp 32424 2006-07-12 09:26:22Z spion $
|
||||
//
|
||||
//
|
||||
// Author(s) : various
|
||||
|
||||
// Tests if GMP is available.
|
||||
|
||||
#include <iostream>
|
||||
#include "gmp.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "version=" << __GNU_MP_VERSION << "."
|
||||
<< __GNU_MP_VERSION_MINOR << "."
|
||||
<< __GNU_MP_VERSION_PATCHLEVEL << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
// Copyright (c) 2005 Utrecht University (The Netherlands),
|
||||
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
|
||||
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
|
||||
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
|
||||
// and Tel-Aviv University (Israel). All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://fcacciola@scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_MPFR.cpp $
|
||||
// $Id: test_MPFR.cpp 32424 2006-07-12 09:26:22Z spion $
|
||||
//
|
||||
//
|
||||
// Author(s) : various
|
||||
|
||||
// Tests if MPFR is available.
|
||||
|
||||
#include <iostream>
|
||||
#include "mpfr.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
#ifdef MPFR_VERSION
|
||||
std::cout << "version=" << MPFR_VERSION_MAJOR << "."
|
||||
<< MPFR_VERSION_MINOR << "."
|
||||
<< MPFR_VERSION_PATCHLEVEL << std::endl;
|
||||
#else
|
||||
// MPFR versions < 2.2.0 did not have version strings
|
||||
std::cout << "version=unknown" << std::endl;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,60 @@
|
|||
// Copyright (c) 2006 Utrecht University (The Netherlands),
|
||||
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
|
||||
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
|
||||
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
|
||||
// and Tel-Aviv University (Israel). All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://fcacciola@scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_OPENGL.cpp $
|
||||
// $Id: test_OPENGL.cpp 36141 2007-02-09 11:11:40Z afabri $
|
||||
//
|
||||
//
|
||||
// Author(s) : Sylvain Pion
|
||||
|
||||
// Tests if OPEN GL and GLU are available.
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#include <wtypes.h>
|
||||
#include <wingdi.h>
|
||||
#endif
|
||||
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glu.h>
|
||||
#include <iostream>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "version=" <<
|
||||
#if defined GL_VERSION_2_1
|
||||
"2.1"
|
||||
#elif defined GL_VERSION_2_0
|
||||
"2.0"
|
||||
#elif defined GL_VERSION_1_5
|
||||
"1.5"
|
||||
#elif defined GL_VERSION_1_4
|
||||
"1.4"
|
||||
#elif defined GL_VERSION_1_3
|
||||
"1.3"
|
||||
#elif defined GL_VERSION_1_2
|
||||
"1.2"
|
||||
#elif defined GL_VERSION_1_1
|
||||
"1.1"
|
||||
#elif defined GL_VERSION_1_0
|
||||
"1.0"
|
||||
#else
|
||||
"unknown"
|
||||
#endif
|
||||
<< std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
// Copyright (c) 2004 Utrecht University (The Netherlands),
|
||||
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
|
||||
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
|
||||
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
|
||||
// and Tel-Aviv University (Israel). All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://fcacciola@scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_QT.cpp $
|
||||
// $Id: test_QT.cpp 32424 2006-07-12 09:26:22Z spion $
|
||||
//
|
||||
//
|
||||
// Author(s) : various
|
||||
|
||||
// Tests if QT is available.
|
||||
|
||||
#include <iostream>
|
||||
#include <qglobal.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "version=" << QT_VERSION_STR << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
// Copyright (c) 2004 Utrecht University (The Netherlands),
|
||||
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
|
||||
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
|
||||
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
|
||||
// and Tel-Aviv University (Israel). All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://fcacciola@scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_TAUCS.cpp $
|
||||
// $Id: test_TAUCS.cpp 41686 2008-01-18 20:33:57Z spion $
|
||||
//
|
||||
// Author(s) : Laurent Saboret
|
||||
|
||||
// Test if TAUCS is available
|
||||
|
||||
|
||||
#include <iostream>
|
||||
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// TAUCS provides no version number :-(
|
||||
// Version 1 is obsolete, thus we assume version 2 (latest is 2.2 on 03/2006)
|
||||
std::cout << "version=2.x" << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
// Copyright (c) 2005 Utrecht University (The Netherlands),
|
||||
// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),
|
||||
// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg
|
||||
// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),
|
||||
// and Tel-Aviv University (Israel). All rights reserved.
|
||||
//
|
||||
// This file is part of CGAL (www.cgal.org); you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public License as
|
||||
// published by the Free Software Foundation; version 2.1 of the License.
|
||||
// See the file LICENSE.LGPL distributed with CGAL.
|
||||
//
|
||||
// Licensees holding a valid commercial license may use this file in
|
||||
// accordance with the commercial license agreement provided with the software.
|
||||
//
|
||||
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
||||
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// $URL: svn+ssh://fcacciola@scm.gforge.inria.fr/svn/cgal/trunk/Installation/config/support/test_ZLIB.cpp $
|
||||
// $Id: test_ZLIB.cpp 32424 2006-07-12 09:26:22Z spion $
|
||||
//
|
||||
//
|
||||
// Author(s) : Andreas Fabri, Laurent Saboret
|
||||
|
||||
// Test if ZLIB is available.
|
||||
|
||||
#include <iostream>
|
||||
#include <zlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
std::cout << "version=" << zlibVersion() << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue