Auto-linking now encapsulated in a library-specific header inside new CGAL/auto_link/ folder.

This commit is contained in:
Fernando Cacciola 2007-02-28 17:43:49 +00:00
parent 2414810b41
commit fb9f6e5472
9 changed files with 161 additions and 11 deletions

View File

@ -13,9 +13,8 @@
// debug reference counting
//#define CORE_RC_DEBUG 1
#ifdef _MSC_VER
# define CGAL_LIB_NAME core++
# include "CGAL/auto_link.h"
#endif
#include <CGAL/auto_link/CORE.h>
#include <CGAL/auto_link/GMP.h>
#include <CGAL/auto_link/MPFR.h>
#endif // _CORE_CONFIG_H_

View File

@ -0,0 +1,30 @@
// Copyright (c) 2007 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$
// $Id$
//
//
// Author(s) : Fernando Cacciola (fernando.cacciola@geometryfactry.com)
#ifndef CGAL_AUTO_LINK_CGAL_H
#define CGAL_AUTO_LINK_CGAL_H
#define CGAL_LIB_NAME CGAL
#include <CGAL/auto_link.h>
#endif // CGAL_AUTO_LINK_CGAL_H

View File

@ -0,0 +1,30 @@
// Copyright (c) 2007 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$
// $Id$
//
//
// Author(s) : Fernando Cacciola (fernando.cacciola@geometryfactry.com)
#ifndef CGAL_AUTO_LINK_CGALQT_H
#define CGAL_AUTO_LINK_CGALQT_H
#define CGAL_LIB_NAME CGALQt
#include <CGAL/auto_link.h>
#endif // CGAL_AUTO_LINK_CGALQT_H

View File

@ -0,0 +1,30 @@
// Copyright (c) 2007 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$
// $Id$
//
//
// Author(s) : Fernando Cacciola (fernando.cacciola@geometryfactry.com)
#ifndef CGAL_AUTO_LINK_CORE_H
#define CGAL_AUTO_LINK_CORE_H
#define CGAL_LIB_NAME core++
#include <CGAL/auto_link.h>
#endif // CGAL_AUTO_LINK_CORE_H

View File

@ -0,0 +1,31 @@
// Copyright (c) 2007 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$
// $Id$
//
//
// Author(s) : Fernando Cacciola (fernando.cacciola@geometryfactry.com)
#ifndef CGAL_AUTO_LINK_GMP_H
#define CGAL_AUTO_LINK_GMP_H
#define CGAL_AUTO_LINK_NOMANGLE
#define CGAL_LIB_NAME gmp
#include <CGAL/auto_link.h>
#endif // CGAL_AUTO_LINK_GMP_H

View File

@ -0,0 +1,31 @@
// Copyright (c) 2007 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$
// $Id$
//
//
// Author(s) : Fernando Cacciola (fernando.cacciola@geometryfactry.com)
#ifndef CGAL_AUTO_LINK_MPFR_H
#define CGAL_AUTO_LINK_MPFR_H
#define CGAL_AUTO_LINK_NOMANGLE
#define CGAL_LIB_NAME mpfr
#include <CGAL/auto_link.h>
#endif // CGAL_AUTO_LINK_MPFR_H

View File

@ -43,6 +43,11 @@
#include <CGAL/compiler_config.h>
//----------------------------------------------------------------------//
// auto-link the CGAL library in platfotms that support it
//----------------------------------------------------------------------//
#include <CGAL/auto_link/CGAL.h>
//----------------------------------------------------------------------//
// do some post processing for the flags
//----------------------------------------------------------------------//

View File

@ -39,10 +39,7 @@
#include <qpixmap.h>
#include <qprinter.h>
#ifdef _MSC_VER
#define CGAL_LIB_NAME CGALQt
#include "CGAL/auto_link.h"
#endif
#include <CGAL/auto_link/CGALQt.h>
namespace CGAL {

View File

@ -36,7 +36,4 @@
# endif
# endif
# endif
# define CGAL_LIB_NAME CGAL
# include "CGAL/auto_link.h"
#endif