Zhijin Li [email protected]
-
Soure code on GitHub
-
Documentation page
-
C++17
conformant compiler. Tested withg++-8.2.0
onmacOS Majave
(MacPorts
). -
boost
(boost::lexical_cast
)
Installation can be performed by copying pasta
headers to a
directory recognizable as an include path. Additionally, the
standard autotools
utilities are also provided, more
particularly for automatic testing & documentation generation. To
generate a configure
script, run the following command from an
out-of-source directory. This will setup the build environment.
/absolute/path/to/pasta/bootstrap.sh [install-prefix] <extra flags>
- The
bootstrap.sh
script launchesautoreconf
to generate projectconfigure
file and run it with follow-up commands. install-prefix
refers to the prefix path to install pasta headers.<extra flags>
specifies non-standardeigen3
andboost
installation directories:--with-eigen
, path toeigen3
--with-boost
, path toboost
.
- You can prepend the above command with
CXX=<compiler>
to specify a compiler to use.
-
Use
make check
to run unit-tests. -
Use
make doc
to generate the API documentation. -
Use
make install
to copy header files underprefix/include/pasta
and doc files underprefix/share/doc/pasta
. -
Use
make uninstall
to remove installed headers and docs. -
Use
make clean
andmake distclean
for a clean re-build.
Note: the pasta/Utilities/io.hh
header uses std::filesystem
. In gcc-8
a
linker flag -stdc++fs
needs to be added for any code that includes
pasta/Utilities/io.hh
to compile.