Skip to content

Commit

Permalink
reorganized project folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
SpectraL519 committed Feb 17, 2024
1 parent 3fe26ba commit 6e27a52
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Prepare
shell: bash
run: |
sudo ./scripts/install_clang_format_17.sh
sudo bash ./scripts/env/install_clang_format_17.sh
continue-on-error: false

- name: Test formatting
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Open your terminal in the project's example directory:
cd <project-root>/example
```
The examples' source files are in the `<project-root>/example/src` directory.
The examples' source files are in the `<project-root>/example/source` directory.

> **Note:** Each source file is a sepparate example.

Expand Down Expand Up @@ -485,20 +485,20 @@ Run the tests:
> **NOTE:** The project uses `clang-format-17`.
>
> To install this tool on ubuntu run `sudo ./scripts/install_clang_format_17.sh`.
> To install this tool on ubuntu run `sudo ./scripts/env/install_clang_format_17.sh`.
>
> On windows you can download the LLVM package from the official LLVM [GitHub release page](https://github.com/llvm/llvm-project/releases/tag/llvmorg-17.0.1)
To format the code use run the following:
```shell
# Unix platforms
./scripts/format_unix.sh
./scripts/format/unix.sh
```
```shell
# Windows: powershell
./scripts/format_win.ps1
./scripts/format/windows.ps1
```
<br />
Expand Down
5 changes: 4 additions & 1 deletion change_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
### Version 1.1

* Added `change_log.md`
* Reorganized project folder strucure:
* Renamed folders `src` to `source`
* Moved formatting scripts to `scripts/format/`
* Aligned the `.clang-format` configuration file and moved formatting scripts to a new directory `<project-root>/scripts`
* Added the `install_clang_format_17.sh` script
* Added the `install_clang_format_17.sh` env script
* Added the `format` workflow

TODO:
Expand Down
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12)
project(cpp-ap-examples)

# Structure
set(SOURCE_DIR "src")
set(SOURCE_DIR "source")
set(INCLUDE_DIRS "include" "../include")
set(BINARY_DIR "bin")
set(EXECUTABLE_DIR "bin")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.12)
project(cpp-ap-test)

# Structure
set(SOURCE_DIRS "src" "app")
set(SOURCE_DIRS "source" "app")
set(INCLUDE_DIRS "include" "../include")
set(BINARY_DIR ".")
set(EXECUTABLE_DIR ".")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6e27a52

Please sign in to comment.