[Insight-users] Annoying console window for Qt + ITK + CMake

Julien Jomier jjomier at cs.unc.edu
Wed Jan 19 14:39:38 EST 2005


Hi Pavan,

Try to add this line to your CMakeLists.txt:

SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem:windows")

Hope that helps,

Julien

Pavan Podila wrote:
> HI,
>    Recently I have switched from qmake to CMake. I was successful in 
> compiling and running my application. However I get this annoying 
> console window which I want to get rid of somehow. I tried the Win32 
> flag in ADD_EXECUTABLE() but then the VS.NET complains about not finding 
> the WinMain().
>    Earlier with qmake I never had this problem. Is there a way to hide 
> this console window. We will be deploying this application on the 
> client-side, so its important that we get rid of the console window. I 
> strongly want to use CMake instead of qmake.
> 
> Kindly help,
> Pavan
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 



More information about the Insight-users mailing list