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:
26
src/CMakeLists.txt
Normal file
26
src/CMakeLists.txt
Normal 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()
|
||||
Reference in New Issue
Block a user