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
2022-12-02 19:41:20 +01:00
parent e43ffb5497
commit 5b45b04454
11 changed files with 260 additions and 0 deletions

18
scripts/googletest.cmake Normal file
View File

@@ -0,0 +1,18 @@
include_guard()
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # release-1.12.1
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
set_property(TARGET
gtest
gtest_main
gmock
gmock_main
PROPERTY FOLDER GoogleTest)