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

26
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,26 @@
set(current_target blank_slate)
add_executable(
${current_target}
main.cpp
)
if( ENABLE_ALL_REASONABLE_WARNINGS )
MESSAGE("Additional Warnings Enabled")
target_enable_warnings(${current_target})
endif()
if( ENABLE_WARNINGS_AS_ERRORS )
MESSAGE("Warnings as Errors")
target_warnings_as_errors(${current_target})
endif()
if( ENABLE_SANITIZERS )
MESSAGE("Sanitizers Enabled")
target_enable_sanitizers(${current_target})
endif()
if( ENABLE_STATIC_ANALYSIS )
MESSAGE("Static Analysis Enabled")
target_enable_static_analysis(${current_target})
endif()