diff options
author | Nao Pross <naopross@thearcway.org> | 2019-02-07 17:35:07 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-02-07 17:35:07 +0100 |
commit | e0373a5971bc178e358db8974510cb9b44d4f69a (patch) | |
tree | cbd17cd2d7135ace17e9a40693dc4d65121e4bf9 | |
parent | Move public headers in include/ (diff) | |
download | libmm-e0373a5971bc178e358db8974510cb9b44d4f69a.tar.gz libmm-e0373a5971bc178e358db8974510cb9b44d4f69a.zip |
Change public headers directory (include) structure
Add a public header that includes the entire library "mm.hpp",
and move mmvec to a subdirectory "mm".
-rw-r--r-- | include/mm.hpp | 11 | ||||
-rw-r--r-- | include/mm/mmvec.hpp (renamed from include/mmvec.hpp) | 0 | ||||
-rw-r--r-- | ninja/rules.ninja | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/include/mm.hpp b/include/mm.hpp new file mode 100644 index 0000000..7e9f02b --- /dev/null +++ b/include/mm.hpp @@ -0,0 +1,11 @@ +#pragma once + +/* MiniMath + * A mathematical vector library that (ab)uses modern C++ abstraction features. + * This header includes the entire library. + * + * Warning: having (ab)used a lot of templated code it is not recommended to + * include everything as it may slow down the compiler. + */ + +#include "mm/mmvec.hpp" diff --git a/include/mmvec.hpp b/include/mm/mmvec.hpp index 4bac658..4bac658 100644 --- a/include/mmvec.hpp +++ b/include/mm/mmvec.hpp diff --git a/ninja/rules.ninja b/ninja/rules.ninja index 8ff3e02..a17c01a 100644 --- a/ninja/rules.ninja +++ b/ninja/rules.ninja @@ -1,4 +1,4 @@ -includes = -I include +includes = -I include/mm cflags = -Wall -Werror -pedantic -fPIC -std=c++17 $includes libs = |