How to make object file with different command and .exe with different command in cmake
<p>I like to know how to generate object file with different g++ command ex:</p>

<ul>
<li>g++ -pipe -D__GNUWIN32__ -c main.cpp -o main.o</li>
</ul>

<p>And using that main.o file need to generate .exe file with different command ex</p>

<ul>
<li>g++ -mwindows main.o -o main.exe
How to do it ...</li>
</ul>