Good evening,
As per this previous thread, I have been trying to adapt this wiring-blink example to Cpputest.
I made a bit more progress in my attempt to incorporate ArduinoFake into an example project using CppUTest:
https://github.com/graial/ArduinoFake-cpputest
But currently my cmakelist.txt is failing to target the main `loop()` function in the source file under test. Instead, from what I can tell, it is searching for it within ArduinoFake.
Alternatively, if I try to just link the blink.o object, I get a redefinition error.
and if I remove ArduinoFake from `target_link_libraries()` then I get undefined reference to errors on the Arduino system calls.
Is there a way to get cmake to look for loop() in the source file? rather than in ArduinoFake?
I'd appreciate any insights anyone here might have and I've asked a similar question to the ArduinoFake Maintainer..
Cheers