I am writing a CMake file to generate Makefiles for an Atmel Project.
The problem I have is that when building in Atmel studio, the options -MF <filname> and -MT"<filename>" are used. For atmel, these filenames are dependent on the input file, so eg. for file foo.c the flags will be set to
-MF "<path>/foo.d" -MT"<path>/foo.d"
How can I have the same behaviour from a CMake Project? What I basically want is below row but where foo is replaced with currently compiling file so it is replaced with bar.d, baz.d et.c.
target_compile_options (foo_project PRIVATE -MD -MP -MF "<path>/foo.d" -MT"<path>/foo.d")
hope I make somewhat sense...
thanks