commit 4eff43f8d167afbd4e25ca0d0cc78bc143f17096
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 6 Aug 2024 09:55:32 +0200
Initial commit
Diffstat:
5 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1,24 @@
+### Meson template
+# subproject directories
+/subprojects/*
+!/subprojects/*.wrap
+
+# Meson Directories
+meson-logs
+meson-private
+
+# Meson Files
+meson_benchmark_setup.dat
+meson_test_setup.dat
+sanitycheckcpp.cc # C++ specific
+sanitycheckcpp.exe # C++ specific
+
+# Ninja
+build.ninja
+.ninja_deps
+.ninja_logs
+
+# Misc
+compile_commands.json
+
+.idea
diff --git a/main.cpp b/main.cpp
@@ -0,0 +1,6 @@
+#include <iostream>
+
+int main() {
+ std::cout << "Hello, World!" << std::endl;
+ return 0;
+}
diff --git a/meson.build b/meson.build
@@ -0,0 +1,12 @@
+project('spank-olm', 'cpp',
+ version : '1.0.0',
+ default_options : ['warning_level=3',
+ 'cpp_std=c++23',
+ 'b_lto=true',
+ 'b_thinlto_cache=true'])
+
+spank_olm = executable('spank_olm', 'main.cpp', install : true)
+
+snitch_dep = dependency('snitch')
+
+test('test', executable('spank-olm-test','tests/test.cpp',dependencies:snitch_dep))
+\ No newline at end of file
diff --git a/subprojects/snitch.wrap b/subprojects/snitch.wrap
@@ -0,0 +1,8 @@
+[wrap-file]
+directory = snitch-1.2.3
+source_url = https://github.com/cschreib/snitch/archive/v1.2.3.tar.gz
+source_filename = snitch-1.2.3.tar.gz
+source_hash = 063c0212942c16df3eb471f235009dd98c9fca98517566d91d1535963528d43d
+
+[provide]
+snitch = snitch_dep
+\ No newline at end of file
diff --git a/tests/test.cpp b/tests/test.cpp