Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

scivision/p4est-cmake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED because p4est itself now has CMake.

p4est-cmake

ci

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.

Usage

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.

Artifacts

Binary artifacts (test executables) are created under "build/".

  • bin: test executables
  • include: *.h headers
  • lib: p4est, sc

Prereqs

p4est needs a few libraries and programs to build.

Linux

The names of these packages vary slightly depending on Linux distro. On Ubuntu:

apt install gcc cmake make libopenmpi-dev autoconf automake libtool

MacOS

assuming Homebrew is used:

brew install gcc cmake make openmpi autoconf automake