2020-06-21 17:49:48 +02:00
|
|
|
# AdaptiveBrightness
|
|
|
|
|
2020-06-21 20:03:08 +02:00
|
|
|
## Build and deployment instructions
|
2020-06-21 18:00:40 +02:00
|
|
|
|
2020-06-21 20:03:08 +02:00
|
|
|
### Windows
|
2020-06-21 18:00:40 +02:00
|
|
|
|
|
|
|
#### Prerequisites
|
|
|
|
|
|
|
|
- Visual Studio 2019
|
2020-06-26 13:47:40 +02:00
|
|
|
- cmake
|
2020-06-21 18:00:40 +02:00
|
|
|
- Qt Library
|
|
|
|
|
|
|
|
#### Build steps
|
|
|
|
|
2020-06-21 20:03:08 +02:00
|
|
|
```console
|
2020-06-26 13:47:40 +02:00
|
|
|
> cmake -G "Visual Studio 16 2019" -A x64 -B build -DCMAKE_PREFIX_PATH="%QTDIR%\msvc2019_64\lib\cmake"
|
2020-06-21 20:03:08 +02:00
|
|
|
```
|
|
|
|
|
2020-06-26 13:47:40 +02:00
|
|
|
Use the generated `*.sln` to build.
|
2020-06-24 00:15:13 +02:00
|
|
|
|
2020-06-26 13:47:40 +02:00
|
|
|
There is an additional build step that automatically copies all required DLLs into the output directory for easy deployment.
|
2020-06-24 00:15:13 +02:00
|
|
|
|
2020-06-21 20:03:08 +02:00
|
|
|
### Linux
|
2020-06-21 18:00:40 +02:00
|
|
|
|
|
|
|
#### Prerequisites
|
|
|
|
|
|
|
|
Assumes Debian Buster: `sudo apt install qt5-default libqt5serialport5-dev`
|
|
|
|
|
|
|
|
#### Build steps
|
|
|
|
|
|
|
|
```console
|
2020-06-26 13:47:40 +02:00
|
|
|
$ cmake -B build
|
|
|
|
$ cd build
|
2020-06-21 18:00:40 +02:00
|
|
|
$ make
|
|
|
|
```
|
2020-06-21 20:03:08 +02:00
|
|
|
|
|
|
|
#### Deployment
|
|
|
|
|
|
|
|
Executable will run on any environment with the same architecture and installed libraries.
|