--- /dev/null
+; Top level editor config
+root = true
+; Always use Unix style new lines
+end_of_line = lf
+; New line ending on every file
+insert_final_newline = true
+; Trim whitespace
+trim_trailing_whitespace = true
+[*.py]
+; PEP8 defines 4 spaces for indentation
+indent_style = space
+indent_size = 4
+[*.md]
+; Markup file 2 spaces for indentation
+indent_style = space
+indent_size = 2
--- /dev/null
+#include "folder1.h"\r
+\r
+int function1()\r
+{\r
+ return 1;\r
+}\r
+\r
+int function2()\r
+{\r
+ return 2;\r
+}\r
--- /dev/null
+#ifndef FOLDER1_H\r
+#define FOLDER1_H\r
+\r
+int function1();\r
+int function2();\r
+\r
+#endif // FOLDER1_H
\ No newline at end of file
--- /dev/null
+#include "gtest/gtest.h"\r
+extern "C" {\r
+#include "folder1.h"\r
+}\r
+\r
+TEST(function1_test, compare1)\r
+{\r
+ ASSERT_EQ(function1(), 1) << "Values are equal function1 == 1";\r
+}\r
+\r
+TEST(function2_test, compare2)\r
+{\r
+ ASSERT_EQ(function2(), 2) << "Values are equal function2 == 2";\r
+}\r
+\r
--- /dev/null
+#include "folder1.h"\r
+#include "folder2.h"\r
+\r
+\r
+int function3()\r
+{\r
+ return function1()+function2();\r
+}\r
--- /dev/null
+#ifndef FOLDER2_H\r
+#define FOLDER2_H\r
+\r
+int function3();\r
+\r
+#endif // FOLDER2_H
\ No newline at end of file
--- /dev/null
+add_unit(TARGET folder2
+ SRCS folder2.c
+ INCS .
+ DEPS folder1)
+
--- /dev/null
+add_unittest(TARGET folder2_test
+ SRCS folder2_test.cpp
+ INCS .
+ DEPS folder2)
+
--- /dev/null
+#include "gtest/gtest.h"\r
+extern "C" {\r
+#include "folder2.h"\r
+}\r
+\r
+TEST(function3_test, compare3)\r
+{\r
+ ASSERT_EQ(function3(), 3) << "Values are equal function3 == 3";\r
+}\r
--- /dev/null
+project('meson_test','cpp', 'c')
+
+gtest = dependency('gtest', main : true, required : false)
+
+# Test 1
+folder1 = 'folder1.c'
+folder1_test = executable('folder1_test.cpp', folder1,
+ dependencies : gtest)
+test('folder1 test', folder1_test)
+
+# Test 2
+folder2 = 'folder2.c'
+folder2_test = executable('folder2_test.cpp', folder1, folder2,
+ dependencies : gtest)
+test('folder2 test', folder2_test)