update README
This commit is contained in:
@@ -5,6 +5,7 @@ C library like `gtest / gmock` like, but works mainly with functions
|
|||||||
linux
|
linux
|
||||||
|
|
||||||
## install
|
## install
|
||||||
|
### generate the library
|
||||||
to create `libytest.so`
|
to create `libytest.so`
|
||||||
```
|
```
|
||||||
make
|
make
|
||||||
@@ -13,8 +14,27 @@ or
|
|||||||
```
|
```
|
||||||
./kreate_library_ytest.sh
|
./kreate_library_ytest.sh
|
||||||
```
|
```
|
||||||
|
### install in local machine
|
||||||
|
this copy permenatly le library `libytest.so` and the headers of `ytest` in local machine
|
||||||
|
```
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```
|
||||||
|
sudo ./install
|
||||||
|
```
|
||||||
|
|
||||||
## install lib ytest
|
### uninstall
|
||||||
|
this remove all files and directory copied in `make install` or `./install`
|
||||||
|
```
|
||||||
|
sudo make uninstall
|
||||||
|
```
|
||||||
|
or
|
||||||
|
```
|
||||||
|
sudo ./uninstall
|
||||||
|
```
|
||||||
|
|
||||||
|
## using lib ytest
|
||||||
|
|
||||||
### include
|
### include
|
||||||
copy the headers in `include_ytest/include` to include directory, for example
|
copy the headers in `include_ytest/include` to include directory, for example
|
||||||
@@ -75,6 +95,10 @@ if we have
|
|||||||
````
|
````
|
||||||
we need to add LD_LIBRARY_PATH env permanantly or
|
we need to add LD_LIBRARY_PATH env permanantly or
|
||||||
```
|
```
|
||||||
|
LD_LIBRARY_PATH=.. ./launch_is_good_m
|
||||||
|
```
|
||||||
|
i.e
|
||||||
|
```
|
||||||
LD_LIBRARY_PATH=/path_to/lib_ytest ./launch_is_good_m
|
LD_LIBRARY_PATH=/path_to/lib_ytest ./launch_is_good_m
|
||||||
```
|
```
|
||||||
it is th same if `./launch_is_good_c` do not find `libytest.so`
|
it is th same if `./launch_is_good_c` do not find `libytest.so`
|
||||||
|
|||||||
Reference in New Issue
Block a user