Files
blank-slate/src/CMakeLists.txt
McMassiveNZ 5b45b04454 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
2022-12-02 19:41:20 +01:00

26 lines
590 B
CMake

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()