Look for at the documentation for add_executable(...). You probably need something like

add_executable(foo WIN32  ${sources})


_________________________________________________________
Mike Jackson                  mike.jack...@bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Mar 29, 2009, at 1:09 PM, Kermit Mei wrote:

Hello, I wrote a program with Qt4, and manage it with CMake. I run it on
Linux, everything goes well. But on Windows xp, there is always a
console come out with the program. How to avoid it in CMAKE?

By the Way, when I want to debug it, I used some std::cerr in my
program. But when I setup it on Windows, it always shows me a memory
error whereas it goes well on Linux. Is it about CMake, or something I
set error? In qmake, the console should be set in CONFIG for windows, so
I don't know how about Linux.

Thanks.

_______________________________________________
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

Reply via email to