From 5197f5b6729a3b7ea35292e5e1410ee75bf5ed9b Mon Sep 17 00:00:00 2001 From: Francesco Rizzi Date: Thu, 27 May 2021 10:25:59 +0200 Subject: [PATCH] add instructions to build to main readme --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 918c7709..c5ebb139 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,23 @@ # pressio-demoapps -Suite of demo/mini apps. -While the primary purpose of this repository is to contain mini-apps -to use for testing ROMs in Pressio, this repository is self-contained in the sense +Suite of demo/mini apps. +While the primary purpose of this repository is to contain mini-apps +to use for testing ROMs in Pressio, this repository is self-contained in the sense that the code here does *not* depend on Pressio. +# Building Tests +Requires CMake > 3.18.0 and a C++ compiler with C++11 support: + +``` +git clone git@github.com:Pressio/pressio-demoapps.git + +export CXX= +cd pressio-demoapps && mkdir build && cd build +cmake -DPRESSIODEMOAPPS_ENABLE_TESTS=On .. +make -j4 +ctest -j4 +``` + # License and Citation [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)