CGAL and its key dependency using ExternalProject_Add

The CMake command below downloads CGAL from github: Release CGAL-5.4.1 · CGAL/cgal · GitHub

It downloads the source files but it does not download GMP and MPFR libraries, for Windows 64bits as is seen in release structure.

Question How you would include these two compiled libraries as part of this command?

ExternalProject_Add(cgal
  GIT_REPOSITORY https://github.com/CGAL/cgal.git
  GIT_TAG v5.4.1
  CMAKE_ARGS
    -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
)

I’d probably use another ExternalProject_Add (or, maybe FetchContent?) to download those and set up dependency between those two.

This does the job:

ExternalProject_Add(cgal_dependencies

  URL https://github.com/CGAL/cgal/releases/download/v5.4.1/CGAL-5.4.1-win64-auxiliary-libraries-gmp-mpfr.zip

  CONFIGURE_COMMAND ""
  BUILD_COMMAND ""
  INSTALL_COMMAND ""
)