[Cmake] Specifying my own file extension
Andy Cedilnik
andy . cedilnik at kitware . com
20 Oct 2003 09:09:26 -0400
Hi Mathieu,
Unfortunately at this point in time CMake does not supports custom
production rules, so you cannot say associate .S files with assembler.
You can use custom commands to compile them though.
Andy
On Mon, 2003-10-20 at 08:48, Mathieu Malaterre wrote:
> Hi all,
>
> I have some file where the extension is .S (assembly code) but still I
> compile them with gcc. Is there a way to specify this in a CMakeList.txt
> or should I hack
>
> CMake/Source/cmSystemTools.cxx :
>
> cmSystemTools::FileFormat cmSystemTools::GetFileFormat(const char* cext)
> {
> ...
> }