only support gcc/g++.
only support MinGW compilers of Msys2.
# x86_64
sudo pacman -S mingw-w64-x86_64-glib2 mingw-w64-x86_64-json-glib mingw-w64-x86_64-sqlite3
# i686
sudo pacman -S mingw-w64-i686-glib2 mingw-w64-i686-json-glib mingw-w64-i686-sqlite3
For Arch Linux:
sudo pacman -S glib2 json-glib sqlite libserialport
mkdir build
cd build
# use ninja
cmake .. -GNinja
ninja
# or use make
cmake ..
make