I’ve seen the need to support Microchip (Atmel) Studio project generation for CMake projects. I’ve tested alternatives like a third-party generator for CMake, but it was hard to deploy in practice.
Is there anything easier to deploy than a small Python script? I doubt so. So, I’ve created a simple Python project called Cast (Compile Commands to Atmel Studio converter). As the tool’s name suggests, it can be used for any project producing
compile_commands.json, not only CMake ones.
If you add a
Makefile wrapper for your build system, you will be able to build from within Microchip Studio as well.
Help improve the tool if you feel it is handy for you!