CMake: add lib skeleton and google-tests

This commit is contained in:
2026-02-28 01:56:55 +01:00
parent 114f4ba834
commit 35b7645314
7 changed files with 87 additions and 0 deletions

15
google-tests/test1.cpp Normal file
View File

@@ -0,0 +1,15 @@
//
// Created by david on 28.02.2026.
//
#include <gtest/gtest.h>
#include "library.h"
// Demonstrate some basic assertions.
TEST(HelloTest, BasicAssertions) {
// Expect two strings not to be equal.
EXPECT_STRNE("hello", "world from test1.cpp");
// Expect equality.
EXPECT_EQ(7 * 6, 42);
printf("asdf");
hello();
}