https://github.com/gembcior/d-ral-model-cpp
C++ model for D-RAL project
https://github.com/gembcior/d-ral-model-cpp
cpp dral embedded
Last synced: 9 months ago
JSON representation
C++ model for D-RAL project
- Host: GitHub
- URL: https://github.com/gembcior/d-ral-model-cpp
- Owner: gembcior
- Created: 2024-05-28T20:41:16.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-27T16:38:10.000Z (over 1 year ago)
- Last Synced: 2025-06-26T19:09:36.883Z (about 1 year ago)
- Topics: cpp, dral, embedded
- Language: C++
- Homepage:
- Size: 228 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

C++ model for D-RAL project
## What is it?
The C++ model that is required to use the [D-RAL](https://github.com/gembcior/d-ral) project.
As a standalone project, it is useless. See [D-RAL README](https://github.com/gembcior/d-ral/blob/main/README.md) and [DRAL Wiki](https://github.com/gembcior/d-ral/wiki) for more details.
## How to use it?
Every release contains a package with header files only and package for CMake. Choose the one that fits your needs.
### With CMake
Use FetchContent to download the package. Then the `dral::model` target will be available.
#### Latest release
```cmake
include(FetchContent)
FetchContent_Declare(dral_model
URL https://github.com/gembcior/d-ral-model-cpp/releases/latest/download/d-ral-model-cmake.tar.gz
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(dral_model)
```
#### Specific release
```cmake
include(FetchContent)
set(DRAL_MODEL_VERSION "v0.2.0")
FetchContent_Declare(dral_model
URL https://github.com/gembcior/d-ral-model-cpp/releases/download/${DRAL_MODEL_VERSION}/d-ral-model-cmake.tar.gz
EXCLUDE_FROM_ALL
)
FetchContent_MakeAvailable(dral_model)
```
### Header files only
Download the package from latest or specific release.
Package contains only the header files. Copy them to your project.
#### Latest release
```
https://github.com/gembcior/d-ral-model-cpp/releases/latest/download/d-ral-model.tar.gz
```
#### Specific release
```
https://github.com/gembcior/d-ral-model-cpp/releases/download/v0.2.0/d-ral-model.tar.gz
```