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
1. Download the latest release and unpack to `NetLicensingClient-cpp` (or checkout [master](https://github.com/Labs64/NetLicensingClient-cpp.git) to build the latest development version)
49
+
2. In the `NetLicensingClient-cpp` directory create `build\` subdirectory
50
+
3. Specify **curl** location using `CMAKE_PREFIX_PATH=your_curl_build_directory`. **curl** build directory must contain `bin`, `include`, and `lib` subdirs.
51
+
4. In **VC command prompt** execute:
52
+
```
51
53
cd NetLicensingClient-cpp\build
52
54
cmake .. -G "Visual Studio <VC versions> Win<86 or 64>" -DCMAKE_PREFIX_PATH=your_curl_build_directory
53
-
</code>
54
-
</pre>
55
-
5. Open solution from <code>NetLicensingClient-cpp\build</code> directory in VC and build library and demo client.
55
+
```
56
+
5. Open solution created in `NetLicensingClient-cpp\build` directory in Visual Studio and build the library and demo client.
56
57
57
58
## Linux build
58
59
59
60
### Build NetLincesing-cpp
60
-
1. Download latest release and unpack to <code>NetLicensingClient-cpp</code> (checkout muster if you want to build latest development version)
3. In <code>NetLicensingClient-cpp</code> create <code>build</code> directory
64
-
3. Run <code>cmake ..</code> from <code>build</code> directory
65
-
4. Run <code>make</code>
61
+
1. Download the latest release and unpack to `NetLicensingClient-cpp` (or checkout [master](https://github.com/Labs64/NetLicensingClient-cpp.git) to build the latest development version)
62
+
2. Install **curl** (for development, including C headers and libraries). E.g. in **Ubuntu**:
63
+
```sudo apt-get install libcurl4-openssl```
64
+
3. In the `NetLicensingClient-cpp` directory create `build/` subdirectory
65
+
4. Execute:
66
+
```
67
+
cd NetLicensingClient-cpp/build
68
+
cmake ..
69
+
make
70
+
```
66
71
67
72
### Unit tests
68
73
69
-
For unit tests you need installed <b>boost</b> unit test library. To build project with unit tests activated use cmake option <code>-DBUILD_TESTS=yes</code>. For example <code>cmake -DBUILD_TESTS=yes ..</code> . Run tests from <code>tests</code> directory on Linux or <code>tests/Debug</code> on Windows because of expected locations of json source files.
70
-
74
+
Unit tests require [**Boost**](https://www.boost.org) Unit Test Framework. To build project with the unit tests activated add cmake option `-DBUILD_TESTS=yes`. The tests must be executed from `tests/` subdirectory on Linux or `tests\Debug\` on Windows in order to properly locate the JSON files with test data.
71
75
72
-
## Note
73
76
74
-
The <b>curl</b> dynamic library should be installed either system-wide or placed along with your executable file.
77
+
## Execution environment
75
78
79
+
**libcurl** dynamic library should be either installed system-wide or otherwise available for the loading at run-time (typically located in the same directory as your executable)
0 commit comments