Gabriele Contini
2019-12-14 5bfaf2ce035d09a6f12af81bf99a46169a5890fc
examples
1个文件已修改
14 ■■■■ 已修改文件
README.md 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
@@ -31,7 +31,7 @@
# How to build
Below an overview of the basic build procedure, you can find detailed instructions for [linux](https://github.com/open-license-manager/open-license-manager/wiki/Build-the-library) or [windows](https://github.com/open-license-manager/open-license-manager/wiki/Build-the-library-win) in the wiki. 
## prerequisites
## Prerequisites
*  Operating system: Linux(Ubuntu, CentOS), Windows
*  compilers       : GCC (Linux) MINGW (Linux cross compile for Windows), MINGW or MSVC (Windows) 
*  tools           : cmake(>3.6), git, make/ninja(linux)
@@ -41,27 +41,27 @@
Clone the project. It has submodules, don't forget the `--recursive` option.
```
```console
git clone --recursive https://github.com/open-license-manager/open-license-manager.git
cd open-license-manager/
cd build
```
## on Linux
```
```console
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make
make install
```
## on Windows (with MSVC 2015)
```
```console
cmake .. -G "Visual Studio 14 2015 Win64" -DBOOST_ROOT="{Folder where boost is}" -DCMAKE_INSTALL_PREFIX=../install
cmake --build . --target install --config Release
```
## cross compile with MINGW on Linux
```
```console
x86_64-w64-mingw32.static-cmake .. -DCMAKE_INSTALL_PREFIX=../install
make
make install
@@ -71,12 +71,12 @@
===========
## on Linux
```
```console
make test
```
## on Windows (MSVC)
```
```console
ctest -C Release
```