Commit Graph

150 Commits

Author SHA1 Message Date
Laurent Rineau 8e167590c8 Use include_directories(SYSTEM ...) for 3rd-party libraries
gcc has an option -isystem, that can replace -I. The documentation is:

 -isystem dir

     Search dir for header files, after all directories specified by -I but
     before the standard system directories. Mark it as a system directory,
     so that it gets the same special treatment as is applied to the
     standard system directories. If dir begins with "=", then the "=" will
     be replaced by the sysroot prefix; see --sysroot and -isysroot.


The "special treatment" means that gcc will not warn about constructions in
headers in directories pointed by -isystem instead of -I.

In the CGAL testsuite, there are a lot of warnings that comes from
third-party libraries (mostly from Boost, but also from Eigen).

This patch tells cmake to use -isystem with gcc, for all CGAL 3rd-party
directories.
2012-08-01 10:53:37 +00:00
Eric Berberich 398ea99687 also ImageIO needs essential libs
This bug has been reportet by Michael Kerber. In his setup 
GMP/MPFR are not in the same directory which resulted in 
a 'missing mpfr.h'. Thanks for pointing out.
2012-07-23 08:22:17 +00:00
Laurent Rineau 4953bbbc86 Remove buggy executable bits 2012-07-04 19:28:22 +00:00
Eric Berberich bc6d9c1005 fixed typo: added missing '_' 2012-07-03 10:53:25 +00:00
Laurent Rineau 947dd14f31 Minor fix: ensure the OpenGL version is displayed by test results pages 2012-06-29 10:57:59 +00:00
Laurent Rineau 70e00b3d6e First fix for Windows: the auto-linking needs link_directories commands 2012-06-28 15:32:04 +00:00
Eric Berberich b918c8d88d merge from next 2012-06-18 08:37:55 +00:00
Laurent Rineau 5b78e7fb9d Fix typo: remove an extra '\' 2012-06-13 09:41:39 +00:00
Eric Berberich 42799e2a39 merge from next 2012-05-21 09:23:32 +00:00
Laurent Rineau ad035ba167 Fix an important bug due to a typo ('z'<->'x') in the following commit:
| ------------------------------------------------------------------------
  | r66980 | sloriot | 2012-01-04 12:10:46 +0100 (Wed, 04 Jan 2012) | 3 lines
  | 
  | follow up of r66938 to avoid int overflow (suggested by Laurent)
  | 
  | 
  | ------------------------------------------------------------------------
2012-03-26 16:52:17 +00:00
Laurent Rineau c0e8a52aeb The CMake module is named FindZIB, and not Findzlib! 2012-01-27 16:47:11 +00:00
Laurent Rineau 7b2e34d267 merge with next 2012-01-27 16:46:42 +00:00
Laurent Rineau 2fbd163e14 Factorize the installation command of CGAL library into the macro
The macro build_cgal_library(..) now defines the installation rules. That
should also fix a bug: now .dll files will be installed in
${CGAL_INSTALL_BIN_DIR}.
2012-01-25 16:49:39 +00:00
Eric Berberich 8ba476b328 added missing config flag 2012-01-24 13:13:43 +00:00
Eric Berberich 832c6c02e7 merge from next; installation.tex got major changes 2012-01-23 13:54:58 +00:00
Laurent Rineau a37c74d534 Add license files, per package 2012-01-16 15:54:22 +00:00
Laurent Rineau 379ad4f80c Fix the wording of LGPLv3+ so that licensecheck detects it well 2012-01-16 14:14:28 +00:00
Laurent Rineau 3686ba1391 minor fix to the wording of LGPLv3+ 2012-01-13 13:36:56 +00:00
Eric Berberich 00d31036ea build_cgal_library -> collect_cgal_library (new macro name) 2012-01-10 18:17:53 +00:00
Eric Berberich 10af9912d9 CGALcomponent libs are not own CMake projects anymore 2012-01-10 18:13:19 +00:00
Eric Berberich 66bc1cef1e merge from next 2012-01-09 12:42:00 +00:00
Laurent Rineau 5b5dd33848 merge changes from next 2012-01-09 12:33:39 +00:00
Sébastien Loriot fd4f086c2d follow up of r66938 to avoid int overflow (suggested by Laurent) 2012-01-04 11:10:46 +00:00
Sébastien Loriot 894b8c36d5 patch to prevent integer overflow 2011-12-29 08:14:37 +00:00
Andreas Fabri 529e88e308 Suppress warning on potential dll linkage problem 2011-10-20 12:32:10 +00:00
Laurent Rineau c37ce187ff Factorize the settings of VERSION/SOVERSION properties of libraries 2011-10-19 15:53:46 +00:00
Laurent Rineau 338c6a9925 Update the export feature to non-Microsoft compilers
Support the ELF visibility feature of gcc/icl/clang
2011-10-18 16:53:54 +00:00
Laurent Rineau 4b135885d0 I forgot to commit that yesterday 2011-10-18 13:20:08 +00:00
Andreas Fabri edecb70af6 Add export statements 2011-10-13 09:14:05 +00:00
Andreas Fabri b2307d8574 Add missing export statements 2011-10-13 08:40:24 +00:00
Laurent Rineau 5946c69608 merge from next 2011-10-12 13:52:06 +00:00
Andreas Fabri ba3e327a2f Suppress a conversion warning 2011-10-12 12:52:48 +00:00
Laurent Rineau dfba14f23c Rename <CGAL/$LIB/export.h> to <CGAL/export/$LIB.h> 2011-10-12 09:43:19 +00:00
Laurent Rineau 87148361ff Rename CGAL_BUILD_SHARED_LIB to CGAL_BUILD_SHARED_LIBS
Better name, and more coherent with CMake variable name:
  BUILD_SHARED_LIBS
2011-10-11 13:52:25 +00:00
Sébastien Loriot 3dfc826c51 LGPLv2.1 -> LGPLv3 for ImageIO 2011-10-10 14:04:01 +00:00
Laurent Rineau aa00f78883 Also support the compilation of CGAL libraries as static libs, with MSVC. 2011-10-06 16:01:16 +00:00
Andreas Fabri d1eb195a4e Add declspecs for Visual C++ so that we can build dlls 2011-10-06 09:55:53 +00:00
Andreas Fabri 4630cdca9c Add export.h 2011-10-06 09:53:56 +00:00
Laurent Rineau 49e4851fd5 QVTK no longer use QT3. Port the "demo" to Qt4. 2011-09-26 14:18:15 +00:00
Laurent Rineau dbf3ace24b merge from next 2011-09-22 07:56:49 +00:00
Laurent Rineau 0c8b4d894e Fix CMakeLists.txt: Qt3 is used. 2011-06-04 16:57:32 +00:00
Marc Glisse 9ad023eeb2 Don't include compiler_config.h directly. 2011-05-30 10:12:38 +00:00
Eric Berberich bcdc7c3771 merge from next 2011-04-28 21:35:58 +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
Eric Berberich 026e830dec merge from next 2011-04-28 10:51:25 +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 4b795c56f4 Global handling of CMake policies
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.
2011-04-28 10:33:17 +00:00
Eric Berberich 56c034b893 merge from next 2011-04-27 22:34:14 +00:00
Laurent Rineau 6f05e72cef 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 18:06:32 +00:00