Create project skeleton
This commit is contained in:
commit
586287dcfa
21
.clang-format
Normal file
21
.clang-format
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
BasedOnStyle: WebKit
|
||||||
|
AlignAfterOpenBracket: AlwaysBreak
|
||||||
|
AlignConsecutiveMacros: false
|
||||||
|
AlignConsecutiveAssignments: false
|
||||||
|
AlignConsecutiveDeclarations: false
|
||||||
|
AlignEscapedNewlines: DontAlign
|
||||||
|
AlignOperands: false
|
||||||
|
AlignTrailingComments: false
|
||||||
|
TabWidth: 4
|
||||||
|
UseTab: ForIndentation
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
PointerAlignment: Right
|
||||||
|
BinPackArguments: true
|
||||||
|
BinPackParameters: true
|
||||||
|
ExperimentalAutoDetectBinPacking: false
|
||||||
|
AllowAllArgumentsOnNextLine: true
|
||||||
|
AllowAllParametersOfDeclarationOnNextLine: true
|
||||||
|
AllowShortFunctionsOnASingleLine: None
|
||||||
|
ColumnLimit: 77
|
||||||
|
...
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
build
|
16
CMakeLists.txt
Normal file
16
CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
|
project(maze-thing LANGUAGES C)
|
||||||
|
|
||||||
|
option(SANITIZERS "Enable undefined behaviour and address sanitizers" ON)
|
||||||
|
|
||||||
|
add_executable(maze-thing main.c)
|
||||||
|
|
||||||
|
set_property(TARGET maze-thing PROPERTY C_STANDARD 11)
|
||||||
|
set_property(TARGET maze-thing PROPERTY C_EXTENSIONS OFF)
|
||||||
|
target_compile_options(maze-thing PRIVATE -Wall -Wextra -pedantic)
|
||||||
|
|
||||||
|
if(${SANITIZERS})
|
||||||
|
target_compile_options(maze-thing PRIVATE -fsanitize=address,undefined)
|
||||||
|
target_link_options(maze-thing PRIVATE -fsanitize=address,undefined)
|
||||||
|
endif()
|
Loading…
x
Reference in New Issue
Block a user