Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Starlet Math

[![Tests](https://github.com/masonlet/starlet-math/actions/workflows/tests.yml/badge.svg)](https://github.com/masonlet/starlet-math/actions/workflows/tests.yml)
[![Tests](https://github.com/starlet-engine/math/actions/workflows/tests.yml/badge.svg)](https://github.com/starlet-engine/math/actions/workflows/tests.yml)
[![C++20](https://img.shields.io/badge/C%2B%2B-20-blue.svg)](https://isocpp.org/std/the-standard)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)

Expand Down Expand Up @@ -37,7 +37,7 @@ This makes it perfect for learning, experimentation, but not a drop-in replaceme
include(FetchContent)

FetchContent_Declare(starlet_math
GIT_REPOSITORY https://github.com/masonlet/starlet-math.git
GIT_REPOSITORY https://github.com/starlet-engine/math.git
GIT_TAG main
)
FetchContent_MakeAvailable(starlet_math)
Expand All @@ -46,15 +46,20 @@ target_link_libraries(app_name PRIVATE starlet_math)
```

### Meson
> **Note:** Meson does not fetch dependencies automatically. Add the [`starlet_math.wrap`](./subprojects/starlet_math.wrap) file to your project's `subprojects` directory.

In your `meson.build`:

```python
starlet_math = subproject('starlet_math')
starlet_math_dep = starlet_math.get_variable('starlet_math_dep')
executable('app_name', 'main.cpp', dependencies: starlet_math_dep)
```

## Building and Testing
```bash
# 1. Clone starlet-math
git clone https://github.com/masonlet/starlet-math.git
git clone https://github.com/starlet-engine/math.git
cd starlet-math
```

Expand Down
7 changes: 7 additions & 0 deletions subprojects/starlet_math.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[wrap-git]
url = https://github.com/starlet-engine/math.git
revision = main
depth = 1

[provide]
starlet_math = starlet_math_dep