| | |
| | | # 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) |
| | |
| | | |
| | | 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 |
| | |
| | | =========== |
| | | |
| | | ## on Linux |
| | | ``` |
| | | ```console |
| | | make test |
| | | ``` |
| | | |
| | | ## on Windows (MSVC) |
| | | ``` |
| | | ```console |
| | | ctest -C Release |
| | | ``` |
| | | |