Make available for FetchContent
This commit is contained in:
parent
6302207a1d
commit
81731c38f4
2 changed files with 36 additions and 8 deletions
23
README.md
23
README.md
|
|
@ -1,5 +1,24 @@
|
|||
# Personal library for C
|
||||
|
||||
## Installation
|
||||
This library can easily be installed using CMake and FetchContent.
|
||||
Add this to your CMakeLists.txt file:
|
||||
|
||||
```cmake
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
htd
|
||||
GIT_REPOSITORY https://github.com/hugomardbrink/htd.git
|
||||
GIT_TAG main
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(htd)
|
||||
|
||||
add_executable(myapp main.c)
|
||||
target_link_libraries(myapp PRIVATE htd::htd)
|
||||
```
|
||||
|
||||
## Features
|
||||
### Primitives
|
||||
Use shorter more concise names for common C types.
|
||||
|
|
@ -37,14 +56,14 @@ cd build
|
|||
ctest
|
||||
```
|
||||
|
||||
## Installing
|
||||
## Local install
|
||||
|
||||
```bash
|
||||
cd build
|
||||
make install
|
||||
```
|
||||
|
||||
## Uninstalling
|
||||
## Local uninstall
|
||||
|
||||
```bash
|
||||
cd build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue