Laurent Rineau
3a223ebd1e
cmake_minimum_required(VERSION 3.12...3.29)
2024-06-06 20:19:44 +02:00
Laurent Rineau
a8b8102567
CGAL_ENABLE_TESTING has three definitions
...
`CGAL_ENABLE_TESTING` is defined three times:
- once in `/CMakeLists.txt` that is the root of the CMake tree for a Git layout
- once in `Installation/CMakeLists.txt` that is the root of the CMake
for a release tarball,
- and once in `CGAL_add_test.cmake`, for consumers of `CGALConfig.cmake`.
Two changes:
- Add the default value `${BUILD_TESTING}` to all three definitions
- Modify the comment
2023-11-10 13:17:46 +01:00
puneetmatharu
d6638db44f
Update CMakeLists.txt
...
Set the default value of CGAL_ENABLE_TESTING to BUILD_TESTING to allow users to continue enabling tests by just specifying BUILD_TESTING.
2023-11-10 10:50:10 +00:00
Puneet Matharu
7944441068
Patch usage of BUILD_TESTING to handle the case that CGAL is a subproject.
2023-11-02 18:09:03 +00:00
Laurent Rineau
a31a7b10eb
use `cmake_language(DEFER CALL..)` instead of `variable_watch`
2022-06-21 20:59:18 +02:00
Laurent Rineau
2288225448
Massive update of CMake policies to version 3.23
2022-05-06 09:34:35 +02:00
Maxime Gimeno
c49152359c
update max version of cmake and announce the new minimal in CHANGE.md
2021-04-15 15:08:54 +02:00
Maxime Gimeno
2f6a9ff599
Allow to use CGAL as a submodule of a bigger CMake project
...
The trick is to use
- `CGAL_SOURCE_DIR` instead of `CMAKE_SOURCE_DIR`, and
- `CGAL_BINARY_DIR` instead of `CMAKE_BINARY_DIR`.
See
https://cmake.org/cmake/help/latest/variable/PROJECT-NAME_SOURCE_DIR.html
https://cmake.org/cmake/help/latest/variable/PROJECT-NAME_BINARY_DIR.html
> This can be useful when add_subdirectory() is used to connect several projects.
2021-02-15 09:07:10 +01:00
Maxime Gimeno
584cad864c
Add C:\local\ to the list of possibilities for boost.
2020-11-17 10:29:54 +01:00
Maxime Gimeno
b3b087dfcf
Remove /lib/cmake/Qt5 and add Program Files (86)
2020-11-17 09:07:37 +01:00
Maxime Gimeno
4ebcdec185
Add paths to Qt5 and boost default windows install to CMAKE_PREFIX_PATH in CMakeLists
2020-11-16 15:40:02 +01:00
Maxime Gimeno
9c15f2c9dc
Use FeatureSummary in the demo, and remove CGAL_FOUND
2020-08-04 12:46:17 +02:00
Laurent Rineau
0ed0741489
Merge branch 'releases/CGAL-4.14-branch' into releases/CGAL-5.0-branch
2020-05-18 11:59:20 +02:00
Laurent Rineau
15f0171013
Fix for the case where CGAL is configured
2020-05-06 13:36:38 +02:00
Sébastien Loriot
aa339ce63d
Merge 'cgal/releases/CGAL-4.14-branch'
2019-08-29 07:37:03 +02:00
Laurent Rineau
5705b9da93
Fix CMake warnings (since 3.15)
2019-08-19 16:18:52 +02:00
Laurent Rineau
4fbf00fb8a
CMake>=3.13: opt for for new policies up to 3.15
2019-06-19 14:34:59 +02:00
Raphael Grimm
f924d51c6f
Add export package to cmake
...
This will add CGAL to the local cmake package cache and enable find_package to find it without manually providing the build dir.
(See: https://cmake.org/cmake/help/latest/command/export.html )
2019-03-06 09:36:14 +01:00
Laurent Rineau
02690350ee
Replace include(CTest) by minimal usage
...
- Define the option `BUILD_TESTING`
- Call to `enable_testing()` if `BUILD_TESTING` is on.
2019-02-04 15:30:24 +01:00
Laurent Rineau
b0f312b192
Disallow in-source builds in the Git repository
2018-05-28 15:21:32 +02:00
Laurent Rineau
c6068691fa
Merge pull request #2547 from lrineau/CMake-parse_CTest_XML_output-lrineau
...
CGAL testsuite implemented with CTest plus Python (part.1)
2017-11-13 11:13:54 +01:00
Laurent Rineau
39cb35b134
Avoid CMake errors with CMake<=3.4
2017-10-31 13:37:43 +01:00
jasjuang
f8d725627b
support sudo make uninstall for cmake
2017-08-09 17:44:25 -07:00
Laurent Rineau
9902457b0a
Make CGAL_SCM.cmake define a function
...
... instead of launching the code. That will help launch it on other
directories.
2017-03-27 17:23:27 +02:00
Laurent Rineau
41c7658466
Merge pull request #1357 from lrineau/CGAL-add_ctest_cont-lrineau
...
CTest support (cont.)
2016-09-23 16:45:09 +02:00
Laurent Rineau
37e138b252
CTest in branch builds
2016-09-20 10:53:20 +02:00
Laurent Rineau
c9e3e6e1e8
Fix CGAL_BRANCH_BUILD
...
The CMake variable `CGAL_BRANCH_BUILD` was an option. But if
the variable was set to `FALSE`, that lead to a CMake error
automatically. This commit fixes that situation by turning the
option into an internal cache value, that cannot be set to FALSE.
2016-08-12 12:50:10 +02:00
Philipp Möller
a66b5d5a09
Use doc/CMakeLists in a release
2015-12-10 17:05:51 +01:00
Philipp Möller
7fec5e2014
Move Documentation/CMakeLists.txt
...
The only sensible place to have it in a release is doc/ so we have to
move it into the subdirectory here.
2015-12-03 16:27:57 +01:00
Laurent Rineau
15c1469a54
CGAL requires CMake>=2.8.11.
2015-07-10 17:01:42 +02:00
Laurent Rineau
3ec0c69f8f
We want 2.8.10 for all demos
...
Previous versions are not tested by the CGAL daily test suite.
2015-07-09 17:50:22 +02:00
Laurent Rineau
e5bcdc5f3e
Update all CMakeLists.txt
...
- CMake 2.8.11 or later is now required
- GLEW is no longer used by demo/Polyhedron/
2015-07-06 18:14:34 +02:00
Sébastien Loriot
93b77ce529
only build the documentation if the BUILD_DOC is set to ON
...
it is better located here
2013-06-21 15:11:25 +02:00
Philipp Möller
6bbd83357d
fixup
2013-05-30 10:18:27 +02:00
Philipp Möller
039c241671
Add the Documentation subproject
2013-05-30 10:03:43 +02:00
Eric Berberich
25f3fb6e2e
remove SVN, refactored SCM code to CGAL_SCM.cmake
...
(plan is to reuse it UseCGAL.cmake)
2012-10-22 22:39:36 +00:00
Philipp Möller
d3bcfdf44b
Enable C for the complete CGAL project
2012-05-24 08:10:39 +00:00
Sébastien Loriot
ab88be4751
clean up printed message to make it more consistent
2012-05-21 11:26:10 +00:00
Laurent Rineau
4aafb6172c
Fix cmake_minimum_required()
...
Yesterday's patch was plainly wrong. I want CMake-2.8.6 on Windows, and
only CMake-2.6.x on Linux.
2012-01-27 14:48:23 +00:00
Laurent Rineau
3437d2ae3c
Followup of the previous commit: require cmake-2.8.6 on Windows
2012-01-26 10:18:43 +00:00
Sébastien Loriot
2dc65f62d2
if svn info ended up with an error, set variable to ""
2012-01-12 16:09:27 +00:00
Laurent Rineau
4108ef55cb
More robust solution for Subversion_GET_INFO
...
Use WORKING_DIRECTORY! That is more robust: if the branch root is a symlink
that works too.
execute_process(COMMAND "${SVN_EXECUTABLE}" info --xml
WORKING_DIRECTORY "${dir}"
...)
2011-11-21 17:03:32 +00:00
Laurent Rineau
519ab4f40f
Do not use CGAL_INSTALLATION_PACKAGE_DIR with Subversion_GET_(URL|REVISION)
...
At the first run of CMake, CGAL_INSTALLATION_PACKAGE_DIR is not known when
Subversion_GET_REVISION and Subversion_GET_URL are called. That gives an
svn error, that is fixed at the second run of CMake. Use CMAKE_SOURCE_DIR
and CMAKE_CURRENT_SOURCE_DIR instead.
2011-11-17 14:12:19 +00:00
Laurent Rineau
c4eb6ccaf0
Factorize the code between Subversion_GET_URL and Subversion_GET_REVISION
...
... into a new function Subversion_GET_INFO. The function
Subversion_GET_REVISION is also moved to <branch_root>/CMakeLists.txt
instead of <branch_root>/Installation/CMakeLists.txt, because that function
is used only in the case of a branch-build anyway.
2011-11-17 14:02:41 +00:00
Andreas Fabri
3bfa2c96b6
Patch for Cygwin svn.exe
...
If the first call to svn returned an error, call cygpath first to get
the directory path, and call svn a second time on the result.
2011-11-17 10:10:12 +00:00
Laurent Rineau
3c92718c22
Add project(CGAL) to the master CMakeLists.txt of branch-build
...
Otherwise the generated IDE projects (in Visual Studio for example) are
named "Project" when branch-build is used.
2011-10-17 12:07:26 +00:00
Laurent Rineau
677ae4c7f4
CMake variables created by the branch-build are marked as advanced
2011-10-12 13:50:17 +00:00
Laurent Rineau
deea22aac4
Simplify the URL of the SVN branch (keep only the "path" part)
2011-06-14 12:51:17 +00:00
Laurent Rineau
771760b538
Add the piece of CMake code to detect the URL of the current SVN branch
...
(Still to-do for Git...)
2011-06-10 09:59:27 +00:00
Laurent Rineau
c248afb548
Cosmetic: unify the use of lowercase for CMake commands names
2011-04-27 21:32:54 +00:00