From 4f3a63c5f2efcf9ca2a912e3685cd7666d13d59b Mon Sep 17 00:00:00 2001 From: chatlanin Date: Thu, 24 Mar 2022 16:30:10 +0300 Subject: [PATCH] add index --- bin/meson.build | 2 +- index/index.hpp | 6 ++++++ index/meson.build | 14 ++++++++++++++ meson.build | 1 + 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 index/index.hpp create mode 100644 index/meson.build diff --git a/bin/meson.build b/bin/meson.build index 7147830..c4f35dc 100644 --- a/bin/meson.build +++ b/bin/meson.build @@ -6,7 +6,7 @@ deps += string_dep deps += range_dep deps += container_dep deps += logger_dep -deps += math_dep +deps += hack_dep executable( 'hack', 'main.cpp', diff --git a/index/index.hpp b/index/index.hpp new file mode 100644 index 0000000..0f2a16c --- /dev/null +++ b/index/index.hpp @@ -0,0 +1,6 @@ +#include "string/string.hpp" +#include "range/range.hpp" +#include "container/container.hpp" +#include "logger/logger.hpp" +#include "math/matrix.hpp" +#include "math/vector.hpp" diff --git a/index/meson.build b/index/meson.build new file mode 100644 index 0000000..c3f35b2 --- /dev/null +++ b/index/meson.build @@ -0,0 +1,14 @@ +headers = ['index.hpp'] +sources = [] + +lib = library( + 'hack', + include_directories : inc, + install : true, + sources: [headers, sources] +) + +hack_dep = declare_dependency( + include_directories: inc, + link_with: lib +) diff --git a/meson.build b/meson.build index 1ad4935..543f1bf 100644 --- a/meson.build +++ b/meson.build @@ -29,5 +29,6 @@ inc = [] inc += include_directories('.') subdir('src') +subdir('index') subdir('bin') subdir('tests')