Laurent Rineau
43cc6b2b2d
CGAL_TweakFindBoost must be included before any call to FindBoost
2019-05-06 16:40:50 +02:00
Laurent Rineau
66b4ec4214
Add a warning about the use of Debug or "" in CMAKE_BUILD_TYPE
2018-03-20 17:08:52 +01:00
Laurent Rineau
4070f70d4b
Fix issue #1580
...
Fix the issue "CMake error when WITH_CGAL_Qt5 is set to ON then
OFF" (#1580 ).
The previous CMake code was using a `file(GLOB)` to discover the list
of configured libraries, whereas that list is known by CMake.
2018-03-14 16:33:11 +01:00
Laurent Rineau
69ca424c5e
Add CGAL_DEV_MODE
2018-02-06 15:08:54 +01:00
Laurent Rineau
c08329e93f
Fix the use of Boost, on Windows
...
Now the branch requires CMake>=3.5. For CMake between 3.1 and 3.4,
included, it is not possible to compile CGAL libraries using C++11 or
later, and then compile a user program with C++03.
2018-01-04 11:45:40 +01:00
Laurent Rineau
1016c43195
Fix detection of Boost.Thread vs. C++11
...
This allows to build CGAL non-header-only with C++11, and then use C++03 is
a user-project: the need for Boost.Thread is reevaluated.
2017-12-19 15:56:30 +01:00
Laurent Rineau
477b12dd83
Hack for the CGAL test suite (cont.)
...
Follow-up to:
> commit 249aed9fd1
> Author: Laurent Rineau <laurent.rineau@cgal.org>
> Date: Thu Nov 23 17:06:21 2017 +0100
>
> Hack for the CGAL test suite
2017-11-30 11:15:38 +01:00
Andreas Fabri
ea95e2b2eb
CGALConfig.cmake changes the CMAKE_MODULE_PATH
...
Maybe a temnporary "solution".
Laurent Rineau
2017-11-30 10:07:53 +00:00
Laurent Rineau
19c5502ca8
Fix compilation of demos in non-header-only
...
Now the variables `CGAL_Qt5_MOC_FILES` and `CGAL_Qt5_RESOURCE_FILES` are no
longer used by the definition of `CGAL_Qt5_extras`: other names are used.
`CGAL_Qt5_extras` is not supposed to be used directly by
users/examples/demos' `CMakeLists.txt`.
2017-11-22 12:45:21 +01:00
Laurent Rineau
255c09f03b
Simplify CGALConfig_binary.cmake.in
2017-03-27 17:23:27 +02:00
Clement Jamin
6af02862de
This comment is not true anymore
2017-03-27 17:23:27 +02:00
Clement Jamin
23a1c3ee54
Revert "This only has to be done in header-only mode"
...
This reverts commit ff3b3b01ab96485cd32564175833b68044806bee.
2017-03-27 17:23:27 +02:00
Clement Jamin
6f0efd931f
Remove useless test
2017-03-27 17:23:26 +02:00
Laurent Rineau
5d5f6d4dae
include CGAL_Macros.cmake in the CGALConfig.cmake
2017-03-27 17:23:26 +02:00
Clement Jamin
dfb24b5340
Add comments
2017-03-27 17:23:26 +02:00
Clement Jamin
b9909ddfb5
This only has to be done in header-only mode
2017-03-27 17:23:26 +02:00
Laurent Rineau
a3ddaa132f
Define and use a new CMake API for CGAL
...
For the moment, the new API is used only in:
- `examples/Mesh_2/CMakeLists.txt`
- `demo/Triangulation_2/CMakeLists.txt`
2017-03-27 17:23:26 +02:00
Clement Jamin
a2a3ad29b4
Use CGAL_SetupCGAL_Qt5Dependencies + remove useless test
2017-03-27 17:23:26 +02:00
Laurent Rineau
e5b441feaa
Fix CGAL_VERSION in CGALConfig.cmake
2016-10-10 12:31:21 +02:00
Guillaume Damiand
157f2507cf
Re-add find_package(Qt5 QUIET COMPONENTS OpenGL Svg) and find_package(OpenGL QUIET) in CGALConfig; they are required in header only mode
2016-06-24 18:58:44 +02:00
Guillaume Damiand
c4758f091a
Simplify CGALConfig files: we do not need anymore to find zlib, nor opengl.
2016-06-24 14:38:28 +02:00
Guillaume Damiand
50125f1d53
First try to use an interface target in header only; in order to allow to link with this fictive target.
2016-06-22 13:44:50 +02:00
Guillaume Damiand
a5e04dcfd0
Update cmakes to deal with ZLIB in header only mode.
2016-06-09 15:39:56 +02:00
Guillaume Damiand
89edc17cb1
Add quit to find_package; and improve error message for Qt5
2016-06-03 09:25:54 +02:00
Guillaume Damiand
10469f9c4e
Update with master
2016-05-25 10:58:55 +02:00
Laurent Rineau
a96ec65c54
Sort results of file(GLOB ...) to make build deterministic
...
Patch from Joachim Reichel <reichel@debian.org>, adapted from the flat
layout to the Git layout.
Fix #1048 .
2016-05-06 16:50:16 +02:00
Laurent Rineau
5b48eedf20
Merge pull request #790 from bo0ts/Installation-remove_ALL_PRECONFIGURED-pmoeller
...
Remove option CGAL_ALLOW_ALL_PRECONFIGURED_LIBS_COMPONENT and associated code
2016-03-24 11:30:14 +01:00
Laurent Rineau
31d416df4e
Fixes the PR #788
...
With the split of `CGALConfig.cmake` into several files, one for each
lib, then the variable `CGAL_ImageIO_USE_ZLIB` was no longer stored in
`CGALConfig.cmake`.
That led to a full blue line in the testsuite:
https://cgal.geometryfactory.com/CGAL/Members/testsuite/results-4.8-Ic-155.shtml#Mesh_3_Examples
2016-03-10 11:56:55 +01:00
Laurent Rineau
3536c89d70
Fix CGALConfig.cmake header-only
2016-03-09 18:53:59 +01:00
Guillaume Damiand
bcd3b6cde3
Remove unused variable
2016-03-09 17:31:24 +01:00
Laurent Rineau
fd42bc1d15
Step 2
...
CGAL_ImageIO and CGAL_Qt5 are not even configured in header-only
mode. They will be configured later by `CGALConfig.cmake`.
2016-03-09 17:14:04 +01:00
Guillaume Damiand
b9d209ee62
Search required third party library in find component macro.
2016-03-09 12:41:42 +01:00
Guillaume Damiand
94f2565c6a
Replace the name of the variable to enable header only mode in CGAL_HEADERS_ONLY
2016-03-09 10:56:11 +01:00
Guillaume Damiand
dff63d83d3
Correct the problem of cmake qt5 macro not available in header only when configuring cgal_qt5.
...
To solve this problem, we added in the macro check_cgal_component the find package of qt5 if we are configuring cgal_qt5.
2016-03-09 10:44:15 +01:00
Guillaume Damiand
38ca4dd5e0
Bugfix in check_cgal_component for its first call.
2016-03-09 10:42:46 +01:00
Guillaume Damiand
561b1f2a38
Do not need cgal_include_moc_files macro
2016-03-09 10:37:58 +01:00
Guillaume Damiand
16a19eb33e
Ok for demo for aabbtree
2016-03-09 10:37:57 +01:00
Philipp Möller
ecb34b3031
Remove option CGAL_ALLOW_ALL_PRECONFIGURED_LIBS_COMPONENT
...
Do not add it to Config.cmake files anymore and remove it from the
interface
2016-02-16 17:20:22 +01:00
Philipp Möller
732d6ccb96
Generate a config file for each lib
2016-02-16 17:02:56 +01:00
Sébastien Loriot
eb4f860f3b
remove mentions of Qt3
2015-10-05 15:19:58 +02:00
Laurent Rineau
e43b1e42ba
Do include the export file if CMP0024 does not exist
...
With CMake-2.8.11, CMP0024 does not yet exist, and the target aliasing
feature does not exist either. So the only solution is to include the
export file.
2015-07-14 16:06:53 +02:00
Laurent Rineau
877634ba9f
Avoid multiple definitions of the target aliases
...
With -DWITH_demos:BOOL=TRUE, the CGALConfig.cmake is included multiple
times. This patch avoids that one tries to define multiple times the
same target aliases.
2015-07-14 15:59:56 +02:00
Laurent Rineau
fb4975f469
Check if the libraries are actually defined
...
In CGALConfig.cmake, the former code was just checking if
WITH_${CGAL_LIB} was TRUE. Now, the new code also checks if the target
was actually defined. If the target is not defined by WITH_${CGAL_LIB}
is ON, if probably means that one dependency of the library was not
properly configured.
2015-07-14 15:12:47 +02:00
Laurent Rineau
34ccb7facd
Merge pull request #133 from bo0ts/Installation-add_exports-pmoeller
...
Add a CGALExports.cmake file
Conflicts:
Installation/cmake/modules/CGALConfig_binary.cmake.in
This merge should fix the warning caused by CMP0024.
2015-07-13 12:45:19 +02:00
Philipp Möller
ed71d08e3d
Do not include the CGALExport.cmake file while still building CGAL
...
This rightfully triggers CMP0024, since the file created by export might
not exist at configure-time. We need to do some extra work to avoid
reading the LOCATION property from a non-imported target hence we
trigger policy CMP0026.
2015-07-10 15:33:37 +02:00
Laurent Rineau
9550a41b67
Merge pull request #133 from bo0ts/Installation-add_exports-pmoeller
...
Add a CGALExports.cmake file
Conflicts:
GraphicsView/src/CGAL_Qt5/CMakeLists.txt
Installation/cmake/modules/CGALConfig_binary.cmake.in
Installation/cmake/modules/CGALConfig_install.cmake.in
There was also a conceptual conflict in:
Installation/src/CMakeLists.txt
2015-07-10 14:03:20 +02:00
Philipp Möller
e7a6f80f05
Check for MSVC when defining library paths
...
We do not know the value of CGAL_AUTO_LINK_ENABLED yet because it is
defined by CGAL_GeneratorSpecificSettings.cmake but this is
equivalent. This is also not a problem, because CGAL_AUTO_LINK_ENABLED
is not user-editable and always enabled on MSVC.
2015-06-24 17:21:37 +02:00
Philipp Möller
8b6acec1b3
Use the LOCATION property to set _LIBRARY variables
...
Inspect the imported targets for information instead of using
configure_file.
2015-06-23 17:59:48 +02:00
Philipp Möller
9e807d8e2d
Include the export files through CGALConfig
2015-06-23 16:30:46 +02:00
Maxime Gimeno
040458d248
Update of all the CMakeList and .cmake files for Qt5
...
Reasy for merging the cpp files from clone qt5
2015-03-30 15:34:17 +02:00