This commit is contained in:
Simon Hardt
2022-02-22 23:22:29 +01:00
commit 722fce888d
5 changed files with 113 additions and 0 deletions

71
.clang-format Normal file
View File

@@ -0,0 +1,71 @@
Language: Cpp
TabWidth: 4
UseTab: Never
AccessModifierOffset: -4
MaxEmptyLinesToKeep: 4
ColumnLimit: 100
ContinuationIndentWidth: 2
IndentWidth: 4
BinPackArguments: false
AlignConsecutiveAssignments: true
AlignTrailingComments: true
AlignAfterOpenBracket: Align
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterStruct: true
BeforeCatch: true
AfterControlStatement: "Always"
AfterFunction: true
AfterNamespace: true
AfterUnion: true
SplitEmptyFunction: true
SplitEmptyNamespace: true
SplitEmptyRecord: true
BreakConstructorInitializers: AfterColon
BreakInheritanceList: AfterColon
BreakStringLiterals: true
Cpp11BracedListStyle: false
FixNamespaceComments: true
IncludeBlocks: Preserve
SortIncludes: true
IndentCaseLabels: true
KeepEmptyLinesAtTheStartOfBlocks: false
NamespaceIndentation: All
PointerAlignment: Left
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeRangeBasedForLoopColon: true
SpacesBeforeTrailingComments: 4
Standard: Auto

19
.gitignore vendored Normal file
View File

@@ -0,0 +1,19 @@
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
_deps
cmake-build-debug
.idea
.vs/
cmake-build-release/
CMakeSettings.json

16
CMakeLists.txt Normal file
View File

@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.16)
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE AND DEFINED ENV{VCPKG_ROOT})
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake")
endif()
message("using vcpkg toolchain: ${CMAKE_TOOLCHAIN_FILE}" )
project({{template}})
set(CMAKE_CXX_STANDARD 20)
find_package(fmt CONFIG REQUIRED)
add_subdirectory(Modules)

0
Modules/CMakeLists.txt Normal file
View File

7
vcpkg.json Normal file
View File

@@ -0,0 +1,7 @@
{
"name": "template",
"version-string": "0.0.1",
"dependencies": [
"fmt"
]
}