Initial commit
This commit is contained in:
commit
a9fcc31a60
18
.clang-format
Normal file
18
.clang-format
Normal 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
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
build/*
|
||||||
|
ExampleBinary
|
15
CMakeLists.txt
Normal file
15
CMakeLists.txt
Normal 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
6
main.cpp
Normal 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
6
readme.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
## Build the project
|
||||||
|
Cd to build folder and run:
|
||||||
|
```
|
||||||
|
cmake .
|
||||||
|
cmake --build .
|
||||||
|
```
|
3
settings.json
Normal file
3
settings.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"editor.formatOnSave": true
|
||||||
|
}
|
3
src/CMakeLists.txt
Normal file
3
src/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
add_library(src
|
||||||
|
eg.cpp
|
||||||
|
)
|
0
src/eg.cpp
Normal file
0
src/eg.cpp
Normal file
Loading…
x
Reference in New Issue
Block a user