You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -107,6 +108,27 @@ You can also use the online editor (https://casbin.org/editor/) to write your Ca
107
108
108
109
https://casbin.org/docs/en/tutorials
109
110
111
+
## Installation and Set-Up
112
+
113
+
#### Windows (Microsoft Visual Studio 2019)
114
+
-`Clone` the repository in your target client project
115
+
- Open the project solution and `build` the solution
116
+
- To use the `casbin-cpp` project in your client project add the path to the static library `casbin.lib` file to your client project properties under `VC++ Directories` > `Library Directories` and also add the path of `casbin` directory to your client project properties under `VC++ Directories` > `Include Directories`
117
+
- Add the static library file name `casbin.lib` to the properties under `Linker` > `Input` > `Additional Dependencies`
118
+
119
+
#### Unix
120
+
-`Clone` the repository in your target client project
121
+
- Change the current working directory to the `casbin-cpp` directory and build the library through following commands:
122
+
```shell
123
+
$ make
124
+
$ make library
125
+
```
126
+
- To get rid of intermediate files generated during building of library:
127
+
```shell
128
+
$ make clean
129
+
```
130
+
- Now, you can use the file present in`lib` directory, created through `archiver`, as a static library
131
+
110
132
## Get started
111
133
112
134
1. New a Casbin enforcer with a model file and a policy file:
0 commit comments