Initial commit

This commit is contained in:
Philip Johansson 2021-08-23 22:19:03 +02:00
commit a9fcc31a60
8 changed files with 53 additions and 0 deletions

18
.clang-format Normal file
View File

@ -0,0 +1,18 @@
Language: Cpp
BasedOnStyle: LLVM
IndentWidth: 4
SortIncludes: true
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: true
AllowShortFunctionsOnASingleLine: None
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Custom
BraceWrapping:
BeforeCatch: true
BeforeElse: true
PointerAlignment: Left
ColumnLimit: 100
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 1000000

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build/*
ExampleBinary

15
CMakeLists.txt Normal file
View File

@ -0,0 +1,15 @@
project(example_proj)
cmake_minimum_required(VERSION 2.8.11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})
add_executable(ExampleBinary main.cpp)
add_subdirectory(src)
target_link_libraries(ExampleBinary
PUBLIC
src
)

6
main.cpp Normal file
View File

@ -0,0 +1,6 @@
#include <iostream>
int main(int argc, char** argv) {
std::cout << "Cool..." << std::endl;
return 0;
}

6
readme.md Normal file
View File

@ -0,0 +1,6 @@
## Build the project
Cd to build folder and run:
```
cmake .
cmake --build .
```

3
settings.json Normal file
View File

@ -0,0 +1,3 @@
{
"editor.formatOnSave": true
}

3
src/CMakeLists.txt Normal file
View File

@ -0,0 +1,3 @@
add_library(src
eg.cpp
)

0
src/eg.cpp Normal file
View File