-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from bernedom/documentation/extended-installat…
…ion-docu Documentation/extended installation docu
- Loading branch information
Showing
6 changed files
with
64 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
class SiConan(ConanFile): | ||
name = "SI" | ||
version = "1.3.0" | ||
version = "1.2.1" | ||
license = "MIT" | ||
author = "Dominik Berner <[email protected]" | ||
url = "https://github.com/bernedom/SI" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Installing `SI` | ||
|
||
The default installation location for SI is `/usr/local/lib/SI`. SI can be installed using raw cmake, cpack (cmakes package mechanism), or as a conan.io package provided from [Bintray](https://bintray.com/bernedom/conan/SI%3ASI) | ||
|
||
## Installing using cmake | ||
|
||
To install using cmake, clone the repository and execute the following commands from within the cloned folder. | ||
|
||
```bash | ||
mkdir build && cd build | ||
cmake .. | ||
cmake --build . --config Release --target install -- -j $(nproc) | ||
``` | ||
|
||
Consider running the build/install command with setting the install prefix, if you do not want to install SI system wide | ||
|
||
```bash | ||
-DCMAKE_INSTALL_PREFIX:PATH=${HOME}/SI-install | ||
``` | ||
|
||
The folder `test/installation-tests` contains standalone sample programs to check for succesful installation. | ||
|
||
## Installing using `cpack` | ||
|
||
To install using cpack, clone the repository and execute the following commands from within the cloned folder. | ||
|
||
```bash | ||
mkdir build && cd build | ||
cmake .. | ||
cmake --build . --config Release --target package -- -j $(nproc) | ||
``` | ||
|
||
This creates gzipped archives containing all files as well as an installation script `SI-<version>-<plattform>.sh`. | ||
|
||
```bash | ||
cd build | ||
mkdir ${HOME}/SI-install | ||
./SI-1.0.1-Linux.sh --prefix=$HOME/SI-install --skip-license --exclude-subdir | ||
``` | ||
|
||
## Installation using conan.io | ||
|
||
As SI is not yet available on [conan-center](https://bintray.com/conan/conan-center) the current bintray repository has to be added to conan first to download SI. | ||
|
||
```bash | ||
conan remote add bernedom https://api.bintray.com/conan/bernedom/conan | ||
``` | ||
|
||
In the `conanfile.txt` SI is added like this, to ensure to get the latest version. | ||
|
||
``` | ||
[requires] | ||
SI/[>1.0 <2.0]@SI/stable | ||
``` | ||
|
||
use `SI/unstable` to get the latest development builds. See the [official conan documentation](https://docs.conan.io/en/latest/integrations/build_system/cmake/cmake_generator.html) on how to integrate the package into your cmake project. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,7 +101,6 @@ testConanCmakeIntegratedInstallation() | |
|
||
# cleanup | ||
conan remove -f *@SI/testing | ||
|
||
} | ||
|
||
|
||
|