title: How to convert a .ino Arduino project to CMake?
body: <p>We have a project written for Arduino that has is compiled through the use of a .ino.</p>
  
  <p>It consists of several .h, 2 of which contain the main equivalent for Arduino, i.e. a setup() and a loop() fcn and they run concurrently (one sending User inputs to the other). </p>
  
  <p>However, to make use of some proprietary code and as part of our new spec, it has to be compiled and uploaded via CMake. </p>
  
  <p>Questions:</p>
  
  <ol>
  <li>How does the .ino regulate the main equivalent? Does it just create 2 seperate threads or?</li>
  <li>How can we replicate this in CMake as none of us know how to compile a program without a central "main". Preferably an answer would have not just in this conversion case, but in general</li>
  <li>Is there a guide or tutorial to cover the conversion?</li>
  </ol>