Minimal test of using cmake to manage external projects (hidapi). Tested on Linux. Should work on Mac as well. Building mkdir build cd build cmake -G Ninja .. ninja