add_executable(simple simple.c) _________________________________________________________ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software www.bluequartz.net Principal Software Engineer Dayton, Ohio
On Sun, May 2, 2010 at 10:20 AM, Mr Shore <shore.cl...@gmail.com> wrote: > I can achieve this by gcc : > > gcc -mwindows -o simple simple.c > > > But only find this in cmake: > > add_executable(simple WIN32 simple.c) > > But it's not exactly the same as -mwindows, > > this will require the entry point to be WinMain, > > while gcc -mwindows doesn't require this. > > How should I do it properly? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake