This is a simple example of usage of the Yoctopuce C++ library with CMake.
More detail on this example can be found on our web site:
https://www.yoctopuce.com/EN/article/compiling-the-c-library-with-cmake
Since this example use submodule do not forget to add the --recurse-submodule
flags:
git clone --recurse-submodule https://github.com/yoctopuce-examples/cmake_example
Go to demo_app subfolder and run cmake
cd demo_app
cmake .