mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
update README
This commit is contained in:
parent
2fa4f8e863
commit
8455f37465
12
README.md
12
README.md
@ -390,11 +390,11 @@ int num = c.convert<int>(s.c_str());
|
|||||||
|
|
||||||
## CMake
|
## CMake
|
||||||
|
|
||||||
If the repository is cloned in the CMake project, it can simply be added:
|
If the repository is cloned within the CMake project, it can be added in the following way:
|
||||||
```cmake
|
```cmake
|
||||||
add_subdirectory(ssp)
|
add_subdirectory(ssp)
|
||||||
```
|
```
|
||||||
Othervise, it can just be fetched from the repository:
|
Alternatively, it can be fetched from the repository:
|
||||||
```cmake
|
```cmake
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
@ -411,7 +411,13 @@ target_link_libraries(project PUBLIC ssp)
|
|||||||
```
|
```
|
||||||
## Meson
|
## Meson
|
||||||
|
|
||||||
Simply fetch the dependency and it is ready to be invoked:
|
Create an *ssp.wrap* file in your *subprojects* directory with the following content:
|
||||||
|
```wrap
|
||||||
|
[wrap-git]
|
||||||
|
url = https://github.com/red0124/ssp
|
||||||
|
revision = origin/master
|
||||||
|
```
|
||||||
|
Then simply fetch the dependency and it is ready to be used:
|
||||||
```meson
|
```meson
|
||||||
ssp_sub = subproject('ssp')
|
ssp_sub = subproject('ssp')
|
||||||
ssp_dep = ssp_sub.get_variable('ssp_dep')
|
ssp_dep = ssp_sub.get_variable('ssp_dep')
|
||||||
|
Loading…
Reference in New Issue
Block a user