AVOID USAGE IN NEW PROJECTS!
- build directory should be out of source tree (when using Eclipse IDE)
- create build directory
devel@Stretch:/work$ mkdir build
- assume the project source code (see above) is locate within directory dhcom-hal
- run cmake to create Makefiles
devel@Stretch:/work/build$ cmake -D CMAKE_TOOLCHAIN_FILE=../dhcom-hal/arm-linux-gnueabihf-toolchain.CMakeCrossSysroot.txt CMakeLists.txt ../dhcom-hal/
- build binaries
devel@Stretch:/work/build$ make
- build debian package (tested for Debian 10)
devel@Stretch:/work/build$ cpack