Functionalize the CMake file for the examples so that there is not repeated code for the basic examples, the arm examples, etc.