ARCHIVED because p4est itself now has CMake.
Building p4est as a CMake ExternalProject for easier use in CMake projects on Linux and MacOS. Windows has platform-specific issues (no autotools), so it is probably easier to use p4est via Windows Subsystem for Linux.
As with most CMake projects:
cmake -B build
cmake --build build
This project consumes p4est as an
ExternalProject.
p4est is downloaded, built, and tested on the cmake --build
command.
Binary artifacts (test executables) are created under "build/".
- bin: test executables
- include: *.h headers
- lib: p4est, sc
p4est needs a few libraries and programs to build.
The names of these packages vary slightly depending on Linux distro. On Ubuntu:
apt install gcc cmake make libopenmpi-dev autoconf automake libtool
assuming Homebrew is used:
brew install gcc cmake make openmpi autoconf automake