Hello,<br>I&#39;m new on CMake, i have a project who compil with a simple Makefile, so i want to translate into a CMakeList.<br><br>I have file extension .m and .h in my src folder, my compiler is GCC.<br>When i want to compile, this is /usr/bin/c++ who launch and compile ... i don&#39;t understand why CMake doesn&#39;t recognize the .m file and use the C compilator gcc.<br>

<br>But with this solution, objc include doesn&#39;t find when i launch my program (sigfault sic) ..<br><br>If a try to modify CXX Compiler for gcc, i have &quot;stray error&quot; in all my source file when LD link the .o ... So, a very bad solution ...<br>

<br>Is there a solution to force CMake to recognize the .m file ? like this in my previous makefile :<br><br>.SUFFIXES: .m .xm<br><br>.m.o:<br>    $(OBJC) -c $(OBJCFLAGS) $(CPPFLAGS) $(DLLCPPFLAGS)<br><br>no google solution for this moment at this problem ..<br>

Thanks a lot for your help !!!<br>Seb<br>