Initial Commit

* A simple C-Make project setup
* A lot of warnings enabled and warnings as errors
* unit test discovery with google test

In progress functionality
- sanitizers
- static analysis
This commit is contained in:
McMassiveNZ committed 2022-12-02 19:41:20 +01:00
1 parent e43ffb5497
commit 5b45b04454
11 files changed
+260

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
include(${CMAKE_SOURCE_DIR}/scripts/googletest.cmake)
add_executable(
blank-slate-test
test_main.cpp
)
target_link_libraries(
blank-slate-test
gtest_main
)
include(GoogleTest)
gtest_discover_tests(blank-slate-test)
+6
View File
@@ -0,0 +1,6 @@
#include <gtest/gtest.h>
TEST(testmain, example)
{
EXPECT_EQ(42, 7*6);
}