Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Husenap committed Jul 9, 2021
0 parents commit 5630493
Show file tree
Hide file tree
Showing 23 changed files with 947 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
AccessModifierOffset: '-4'
AllowShortFunctionsOnASingleLine: Inline
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
BasedOnStyle: Google
BinPackArguments: false
BinPackParameters: false
BreakConstructorInitializers: BeforeComma
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ColumnLimit: 80
IndentWidth: 4
TabWidth: 4
UseTab: Never
IndentPPDirectives: None
IndentCaseLabels: false
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^<.*\..*>'
Priority: 2
- Regex: '^<.*>'
Priority: 1
- Regex: '".*"'
Priority: 3
Language: Cpp
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build

on: [push]

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Debug, Release]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2

- name: Generate
shell: bash
run: bash scripts/gen -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}

- name: Build
shell: bash
run: bash scripts/build

- name: Test
shell: bash
run: bash scripts/test
23 changes: 23 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: clang-format

on: [push]

jobs:
clang-format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: clang-format lint
uses: DoozyX/[email protected]
with:
clangFormatVersion: 12
inplace: true

- name: Add & Commit
uses: EndBug/[email protected]
with:
default_author: github_actions
pull_strategy: NO-PULL
message: "Formatted files using clang-format"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.build/
.vscode/
.deps/
28 changes: 28 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.16)

project("new_project_name" C CXX)

include("cmake/prevent_in_source_builds.cmake")
include("cmake/standard_project_setup.cmake")

include("cmake/compiler_features.cmake")
include("cmake/compiler_warnings.cmake")

include("cmake/auto_group_sources.cmake")

set(${PROJECT_NAME}_FOLDER
${PROJECT_NAME}
CACHE STRING "The folder that ${PROJECT_NAME} projects will be placed in.")

option(${PROJECT_NAME}_BUILD_TESTS
"If the ${PROJECT_NAME} tests are built in addition to the ${PROJECT_NAME} library."
ON)

add_subdirectory("new_project_name")

if(${${PROJECT_NAME}_BUILD_TESTS})
enable_testing()
include(GoogleTest)
include("thirdparty/googletest.cmake")
add_subdirectory("new_project_name_test")
endif()
Loading

0 comments on commit 5630493

Please sign in to comment.