-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Big cleanup, optimisation, added conversions. * Add missing include. * Fixing build. * Cleanup and reduction. Add namespace docs. * Fix constexpr. * Fix build.
- Loading branch information
1 parent
812cb09
commit a8bc25a
Showing
12 changed files
with
919 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Microsoft | ||
BasedOnStyle: Mozilla | ||
|
||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortFunctionsOnASingleLine: true | ||
AllowShortBlocksOnASingleLine: true | ||
AlwaysBreakTemplateDeclarations: Yes | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
BreakAfterAttributes: Leave | ||
BreakBeforeBraces: Allman | ||
ColumnLimit: 120 | ||
IndentWidth: 4 | ||
PackConstructorInitializers: NextLine | ||
... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,41 @@ | ||
# qname | ||
# qname | ||
|
||
[![CMake](https://github.com/Quicr/qname/actions/workflows/cmake.yml/badge.svg?branch=main)](https://github.com/Quicr/qname/actions/workflows/cmake.yml) | ||
|
||
A library for the QUICR Name and Namespace type definitions. | ||
|
||
## Including in your Project | ||
|
||
### CMake | ||
|
||
To include qname in your project, simply add `qname` or `quicr::name` to your `target_link_libraries`: | ||
```cmake | ||
target_link_libraries(project_name PUBLIC/PRIVATE/INTERFACE qname) | ||
# Or | ||
target_link_libraries(project_name PUBLIC/PRIVATE/INTERFACE quicr::name) | ||
``` | ||
|
||
## Building | ||
|
||
To build qname on it's own, simply use | ||
```bash | ||
cmake -B build | ||
cmake --build build | ||
``` | ||
|
||
To build with tests, simply add the `BUILD_TESTING` flag during configuration: | ||
```bash | ||
cmake -B build -DBUILD_TESTING=ON | ||
``` | ||
|
||
To build with benchmarking, simply add the `BUILD_BENCHMARKING` flag during configuration: | ||
```bash | ||
cmake -B build -DBUILD_BENCHMARKING=ON | ||
``` | ||
|
||
Example of a full build configuration, including testing and benchmarking: | ||
```bash | ||
cmake -B build -DBUILD_TESTING=ON -DBUILD_BENCHMARKING=ON | ||
cmake --build build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.