Initial commit

This commit is contained in:
William McVicar
2023-04-28 09:00:18 +02:00
committed by GitHub
commit 01457e7e5b
19 changed files with 633 additions and 0 deletions

29
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,29 @@
set(current_target blank_slate)
add_executable(
${current_target}
main.cpp
)
find_package(spdlog CONFIG REQUIRED)
target_link_libraries(${current_target} PRIVATE spdlog::spdlog spdlog::spdlog_header_only)
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()

8
src/main.cpp Normal file
View File

@@ -0,0 +1,8 @@
#include <spdlog/spdlog.h>
auto main() -> int
{
spdlog::trace("Hello, World!");
return 0;
}