$ git clone https://github.com/geomatsi/nrf24-tools
$ cd nrf24-tools
$ mkdir build && cd build
$ cmake .. -DWITH_UNIT_TESTS=ON -DNRF24_CONN='UM232H'
$ make
$ make test
or
$ mkdir build && cd build
$ cmake .. -DWITH_UNIT_TESTS=ON -DNRF24_CONN='UM232H' -G Ninja
$ ninja
$ ninja test
$ mkdir build && cd build
$ cmake .. -DKERNEL_DIR=/usr -DWITH_UNIT_TESTS=ON -DNRF24_CONN='SBC'
$ make
$ make test
or
$ mkdir build && cd build
$ cmake .. -DKERNEL_DIR=/usr -DWITH_UNIT_TESTS=ON -DNRF24_CONN='SBC' -G Ninja
$ ninja
$ ninja test