Commit Graph

543 Commits

Author SHA1 Message Date
Laurent Rineau 1d63eeb5dc Add support for testing on Android 2017-11-14 10:39:35 +01:00
Laurent Rineau 264c23294f Ease the cross-compilation 2017-11-14 10:38:51 +01:00
Laurent Rineau 260c4dac61 Fix the API of cgal_add_test 2017-11-03 15:05:35 +01:00
Laurent Rineau 252eb66dc2 Split cgal_add_test further, with the new cgal_setup_test_properties 2017-11-03 11:13:49 +01:00
Laurent Rineau 855d995e1e Improvements
- split `cgal_add_test()` into `cgal_add_test()` and
  `cgal_add_compilation_test()`

- `cgal_add_test()` have more parameters:
  - an optional custom `TEST_NAME`,
  - extra arguments to use for the test.

- Add CTest support for `test/Sweep_line_2/`
2017-11-03 09:34:55 +01:00
Laurent Rineau 633374027b Do not run a test if the compilation failed
The test binary may have been compiled in a previous compilation.
But if the current compilation failed, do not run the test.
2017-10-26 19:50:40 +02:00
Laurent Rineau 6c24ed92e5 Deal with comments (`#`) in test/Set_movable_separability_2/*.cmd 2017-10-24 11:46:40 +02:00
Laurent Rineau 1fbdd79363 Avoid adding the same test twice 2017-10-23 16:10:06 +02:00
Laurent Rineau 45d60917e4 Use CMake 3.7 fixtures, to execute in a dedicated directory 2017-10-20 17:02:32 +02:00
Laurent Rineau e73c95d4cd Do not test demos 2017-10-20 17:01:43 +02:00
Laurent Rineau 9a127c6f5d Add CMake option CGAL_CTEST_DISPLAY_MEM_AND_TIME
"Display memory and real time usage at end of CTest test outputs"
2017-10-20 10:26:11 +02:00
Laurent Rineau a63cfa9612 Parse the XML file Test.xml from `ctest -D`
... eventually, that will help move from our testsuite scripts to
CTest testsuite, plus CDash.
2017-10-20 00:15:04 +02:00
Laurent Rineau 63f5286372 Merge pull request #2375 from sloriot/Cmake-remove_FindCGAL
Remove files no longer needed since CGAL uses the config mode of cmake
2017-08-28 12:49:55 +02:00
Sébastien Loriot a3cbacd968 remove files no longer needed since CGAL uses the config mode of cmake 2017-08-25 17:00:22 +02:00
Simon Giraudot b88deb3759 Rename Efficient_RANSAC_traits as Shape_detection_traits (same for concept) 2017-08-01 15:45:06 +02:00
Laurent Rineau fb458b9506 Whitelist also the (read|write)_ply_points.h 2017-07-11 11:58:53 +02:00
Laurent Rineau 2d286d5e79 Add the files to the whitelist 2017-07-11 11:58:53 +02:00
Simon Giraudot 8aed657e64 Check for LASLIB_INCLUDE_DIR to make sure LASlib is found 2017-07-11 11:58:52 +02:00
Jane Tournois 4e2982c15a add hints to find LASlib (helps on windows) 2017-07-11 11:58:52 +02:00
Simon Giraudot bd94c3005b Move USE_AS_DLL as a temporary definition around LASlib header 2017-07-11 11:58:52 +02:00
Jane Tournois 55c1972c22 add macro USE_AS_DLL to decl import 2017-07-11 11:58:52 +02:00
Simon Giraudot 1a53899c4b Correct FindLASLIB with CGAL fork of LASLIB 2017-07-11 11:58:50 +02:00
Simon Giraudot 9a77eef553 Unify cmake behavior with LASlib 2017-07-11 11:58:50 +02:00
Simon Giraudot f4fea04a4d Add definition CGAL_LINKED_WITH_LASLIB 2017-07-11 11:58:48 +02:00
Simon Giraudot a79d7be088 New example for LAS reader 2017-07-11 11:58:47 +02:00
Laurent Rineau 981d271774 Merge pull request #2181 from gdamiand/patch-1
Update CGAL_SetupFlags.cmake
2017-06-30 16:52:07 +02:00
Mael Rouxel-Labbé f860f8c2c7 Replaced pointer to licence with licence itself 2017-06-22 16:17:13 +02:00
Mael Rouxel-Labbé b432ff351b Fixed permissions 2017-06-22 16:15:57 +02:00
Andreas Fabri 602e6b456f find_package SuiteSparse 2017-06-22 16:15:57 +02:00
Laurent Rineau f6d87bc3a5 Merge pull request #2172 from Geopipe/usecgalspam
Flag to prevent blanking linking flags from being applied
2017-06-21 14:44:40 +02:00
Guillaume Damiand 2a5dfb149a Update CGAL_SetupFlags.cmake
Allows to use the 4 possible built types Release, Debug, RelWithDebInfo or MinSizeRel.

(see https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html)
2017-06-15 19:03:06 +02:00
Laurent Rineau c25e4997ef Fix the indentation 2017-06-15 17:38:34 +02:00
Thomas "elfprince13" Dickerson 0d13f433f7 flag to prevent blanking linking flags from being applied 2017-06-13 19:03:16 -04:00
Laurent Rineau b4f3d79b9b Make CTest build the targets 2017-06-09 16:50:06 +02:00
Laurent Rineau 4d6149647d <CGAL/CGAL_Ipelet_base.h> requires C++11, skip it
That header needs C++11 at least, and that does not play well with the
`check_headers` feature. So put it in the whitelist, so that it is not
tested along with the other headers.
2017-04-18 18:25:56 +02:00
Laurent Rineau d87cfd9ed5 CMake: If MSVC/C++11, do not search for Boost.Thread for CGAL_Core
See for example that error, on a Windows platform that does not have any
compiled Boost libraries.

https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-4.10-Ic-121/Polygon_Demo/TestReport_afabri_x64_Cygwin-Windows10_MSVC2017-Debug-64bits.gz
2017-02-09 12:46:36 +01:00
Laurent Rineau b73a88babc CGAL_Core MemoryPool<T> will always use Boost.Thread with g++
Because of bug in gcc, even if the C++11 `thread_local` keyword can be
used, it cannot be used for the TLS static member of the class template
`MemoryPool<T>`. That triggers a bug in gcc (tested with g++ 6.3.1):
```
.../include/CGAL/CORE/MemoryPool.h:113:25: error: redefinition of 'bool __tls_guard'
 MemoryPool<T, nObjects> MemoryPool<T, nObjects>::memPool;
                         ^~~~~~~~~~~~~~~~~~~~~~~
.../include/CGAL/CORE/MemoryPool.h:113:25: note: 'bool __tls_guard' previously declared here
.../include/CGAL/CORE/MemoryPool.h:113: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/cc4xCWuR.out file, please attach this to your bugreport.
```

The bug seems to be from g++ >= 5:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54948
2017-02-08 17:05:13 +01:00
Sébastien Loriot a89ccb10e7 remove non UTF-8 characters 2017-01-19 15:20:26 +01:00
Michel Zou 722e37c4d7 MPIR support 2016-12-23 22:32:32 +01:00
Laurent Rineau 204f9d080a Merge remote-tracking branch 'cgal/releases/CGAL-4.9-branch' 2016-12-05 12:19:36 +01:00
Laurent Rineau f99b898cdf Use LEDA linker flags 2016-12-02 10:57:18 +01:00
Laurent Rineau 205bc84874 Fix FindLEDA with clang 2016-11-30 10:40:04 +01:00
Laurent Rineau 5b3c44a3ef Merge pull request #1637 from sloriot/CGAL-fix_install_prefix
Add a hardcoded fall back for the installation prefix
2016-11-03 11:03:24 +01:00
Sébastien Loriot f674cc1cd1 add a hardcoded fall back for the installation prefix
in case of no common setting, the installation cannot be
relocated automatically
2016-10-31 15:52:11 +01:00
Laurent Rineau 2c4e047f58 Do not early exit if IPE_FULL_VERSION is not there
If `IPE_FULL_VERSION` is missing, that leads to a CMake error in
`CMakeLists.txt` files using it.
2016-10-25 11:17:10 +02:00
Laurent Rineau 0d5ddad5c3 Merge pull request #1534 from lrineau/CGAL-Allow_examples_to_use_cpp11_features-lrineau
Allow examples to use C++>=11 features
2016-10-17 10:03:05 +02:00
Laurent Rineau 54ce89f314 Merge pull request #1560 from lrineau/Installation-fix_CGAL_VERSION_issue_1559-lrineau
Fix CGAL_VERSION in CGALConfig.cmake
2016-10-17 10:01:11 +02:00
Laurent Rineau e5b441feaa Fix CGAL_VERSION in CGALConfig.cmake 2016-10-10 12:31:21 +02:00
Laurent Rineau 451577719c Merge pull request #1542 from lrineau/Installation-fix_CGAL_SetupBoostlrineau
try_run to detect the C++ version
2016-10-07 14:38:22 +02:00
Laurent Rineau 223c1cf5a4 Merge pull request #1530 from lrineau/Installation-compute_dependencies-GF
Compute and fix packages dependencies
2016-10-05 13:11:04 +02:00