Commit a86ff2e6 authored by Martin Beseda's avatar Martin Beseda

ENH: Improved compile message and README

parent 69f958f8
......@@ -16,12 +16,11 @@
```
git clone git@code.it4i.cz:moldyn/lib4neuro.git
```
- Clone the repository of `exprtk`
```
https://github.com/ArashPartow/exprtk.git
git clone https://github.com/ArashPartow/exprtk.git
```
#### Linux (Debian-based)
......@@ -30,34 +29,29 @@
```
sudo apt-get install libboost-all-dev
```
- Go to the `lib4Neuro` folder
- Set variables `BUILD_TYPE` and `CXX_COMPILER` in the file `build.sh`
- Run
- Go to the `lib4Neuro` folder and run
```
./build.sh
```
#### Windows
- Download `Boost` from [this link](https://www.boost.org/users/download/)
- Run the Visual Studio Command Prompt and go to the folder with `Boost`
- Download `Boost` from [this link](https://www.boost.org/users/download/) and extract the archive
- Run the Visual Studio Command Prompt (Start Menu -> Visual Studio *** -> Developer Command Prompt)
and go to the folder with `Boost`
```
cd FOLDER_WITH_BOOST
cd "folder with Boost"
bootstrap.bat
b2.exe --build-type=complete
```
- Set `BOOST_ROOT` variable to the path of your folder with `Boost`
- set `BOOST_ROOT` variable to the path of your folder containing `Boost`
```
setx BOOST_ROOT YOUR_PATH
setx BOOST_ROOT "path to your Boost folder"
```
- Go to the `lib4neuro` folder
- Set variables `BUILD_TYPE`, `CXX_COMPILER` and `C_COMPILER` in the file `build.bat`
- Run
- go to the `lib4neuro` folder and run
```
build.bat
......
......@@ -15,4 +15,4 @@ set MAKEFILE_GENERATOR="Visual Studio 15 2017"
call clean.bat
cmake -G %MAKEFILE_GENERATOR% -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_CXX_COMPILER=%CXX_COMPILER% -DCMAKE_C_COMPILER=%C_COMPILER% -DBOOST_ROOT=%BOOST_ROOT% -DBOOST_LIBRARYDIR=%BOOST_LIBRARYDIR% -DBOOST_INCLUDEDIR=%BOOST_INCLUDEDIR% -DBoost_DEBUG:BOOL=ON .
cmake --build . --config %BUILD_TYPE% && (echo Build complete.) || (echo "Build finished with errors!")
cmake --build . --config %BUILD_TYPE% && (echo (Build complete.); echo (For examples have a look at the folder build/bin/examples.)) || (echo "Build finished with errors!")
......@@ -13,4 +13,4 @@ CXX_COMPILER="g++-8"
$(pwd)/clean.sh
cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_COMPILER=${CXX_COMPILER} .
cmake --build . --config ${BUILD_TYPE} -- -j${N_CORES} && (tput setaf 2; echo "Build complete."; tput sgr 0; ) || (tput setaf 1; echo "Build finished with errors!"; tput sgr 0; exit 1;)
cmake --build . --config ${BUILD_TYPE} -- -j${N_CORES} && (tput setaf 2; echo "Build complete."; echo "For examples have a look at the folder build/bin/examples."; tput sgr 0; ) || (tput setaf 1; echo "Build finished with errors!"; tput sgr 0; exit 1;)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment