Relative Content

Tag Archive for cmake

CMAKE order of execution

I want to use an include() statement before I use the project() statement. But I cannot get this to work.

How to decouple spagheti code for unit tests [duplicate]

This question already has answers here: I’ve inherited 200K lines of spaghetti code — what now? (19 answers) Closed 2 days ago. This post was edited and submitted for review 6 mins ago. A little background on the project: we as a company receive a spaghetti source code, and into that we add even more […]

How to unit test spagheti code

A little background on the project: we as a company receive a spaghetti source code, and into that we add even more spaghetti code. So with that I want to say that complete restructuring the code and un-spaghettifing it is not really possible, and we also do not have any say in what the other company deliveries, we just have to deal with what we have.
It is a C/C++11 code with CMake. I chose Google test framework (but I can still change it).

How to compile the source code on GitHub into the files they release?

I’m sorry, I am a complete beginner. I made some changes to the source code of the GP2040-CE project (using ChatGPT), and now I’m trying to compile it into software for my device (a uf2 file as their releases). I’ve tried my best to search for information, but I just can’t seem to get it done. Please help me out.
Project URL:https://github.com/OpenStickCommunity/GP2040-CE