aboutsummaryrefslogtreecommitdiff
path: root/doc/Building.md
blob: ab731dceda480b2a747944d1ea47c7e84c0860e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Customizing
### Version

### Configuration
Configuration values are set from defaults.h, which is generated from
defaults.h.{linux;win32}.

## Building on Windows

~~~
set INSTALL_DIR="C:\projects\smolbote-install"
mkdir %INSTALL_DIR%

mkdir C:\projects\smolbote-build
cd C:\projects\smolbote-build

set QT="C:\Qt\5.11.0\msvc2017_64"
set BOOST_ROOT="C:\Libraries\boost_1_66_0"
set BOOST_LIBDIR="C:\Libraries\boost_1_66_0\lib64-msvc-14.1"
cmake  -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -DCMAKE_PREFIX_PATH=%QT%;%BOOST_ROOT% -DBOOST_ROOT=%BOOST_ROOT% -DBOOST_LIBRARYDIR=%BOOST_LIBDIR% -DBoost_USE_STATIC_LIBS=On C:\projects\smolbote-hg
cmake --build . --target poi --config Release
cmake --build . --target install --config Release
cd %INSTALL_DIR%
C:\Qt\5.10.1\msvc2017_64\bin\windeployqt.exe bin\poi.exe

7z a C:\projects\smolbote-hg\smolbote.7z %INSTALL_DIR%
~~~