I hope this is a simple question and I'm just missing something fundamental.
I'm trying to emulate a binary build manager for an embedded Cortex-M0 target using a CMake project. I'm having some trouble figuring out how to generate list files for each dependency of my executable target.
The current build system, when compiling a file calledmain.cpasses-Wa,-alh=.\CortexM0\ARM_GCC_493\Debug/main.lstas an argument to gcc. I'd like to do something similar, but I can't figure out how to get CMake to use the current filename being compiled to save the file.