No subject
Mon Dec 15 09:51:36 EST 2008
if(WIN32)
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
RELWITHDEBINFO "/SUBSYSTEM:CONSOLE")
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
=A0 =A0 set_target_properties(WindowApplicationExample PROPERTIES
MINSIZEREL "/SUBSYSTEM:WINDOWS")
endif(WIN32)
--=20
John M. Drescher
=0A=0A=0A
--0-893666272-1239053689=:7266
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;"><DIV>Hi John,</DIV>
<DIV> </DIV>
<DIV>I modified CMakeList.txt file in qtevents folder with the following en=
try:</DIV>
<DIV> SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /subsystem=
:windows"), ran CMake and generated a new VS2008 Solution file. However, my=
project properties did not reflect this change. My linker properties&=
nbsp;still show /subsystem:console. </DIV>
<DIV> </DIV>
<DIV>The good news is that the console didnot pop up after manually&nb=
sp;setting:</DIV>
<DIV>SubSystem=3D Windows (/SUBSYSTEM:WINDOWS)</DIV>
<DIV>in VS 2008.</DIV>
<DIV> </DIV>
<DIV>Thank you.</DIV>
<DIV><BR><BR><BR>--- On <B>Mon, 4/6/09, John Drescher <I><drescherjm at gma=
il.com></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(=
16,16,255) 2px solid"><BR>From: John Drescher <drescherjm at gmail.com><=
BR>Subject: Re: [vtkusers] How to hide the console for a VTK/Qt app<BR>To: =
"Jim" <jiksed at yahoo.com>, "VTK" <vtkusers at vtk.org>, "Cmake Mail=
ing List" <cmake at cmake.org><BR>Date: Monday, April 6, 2009, 3:15 PM<B=
R><BR>
<DIV class=3DplainMail>On Mon, Apr 6, 2009 at 5:06 PM, John Drescher <<A=
href=3D"http://us.mc320.mail.yahoo.com/mc/compose?to=3Ddrescherjm@gmail.co=
m" ymailto=3D"mailto:drescherjm at gmail.com">drescherjm at gmail.com</A>> wro=
te:<BR>> On Mon, Apr 6, 2009 at 4:59 PM, Jim <<A href=3D"http://us.mc=
320.mail.yahoo.com/mc/compose?to=3Djiksed at yahoo.com" ymailto=3D"mailto:jiks=
ed at yahoo.com">jiksed at yahoo.com</A>> wrote:<BR>>><BR>>> Dear =
vtkusers,<BR>>><BR>>> While executing VTK examples such as qtev=
ents, a black (debugging) console<BR>>> like Windows Command Prompt p=
ops up. This doesn't look nice if my customers<BR>>> see it. How can =
I hide this console?<BR>>><BR>>> #SET(CMAKE_EXE_LINKER_FLAGS "$=
{CMAKE_EXE_LINKER_FLAGS} /subsystem:windows")<BR>>><BR>> Bing a wi=
ndows developer for 15 years I know this should be the<BR>> working one.=
Check your linker settings in your Visual Studio project<BR>> file and =
make
sure that it does say /subsystem:windows<BR>><BR>> The default in cm=
ake I believe is /subsystem:console which I know<BR>> starts a new conso=
le. I remember that I used that option years ago to<BR>> add debug conso=
le to all my GUI apps. :)<BR>><BR>From the cmake mailing list, I found t=
his:<BR><BR>if(WIN32)<BR> set_target_properties(WindowApplicat=
ionExample PROPERTIES<BR>LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")<BR> &=
nbsp; set_target_properties(WindowApplicationExample PROPERTIES<BR>RELWITHD=
EBINFO "/SUBSYSTEM:CONSOLE")<BR> set_target_properties(WindowA=
pplicationExample PROPERTIES<BR>LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")<BR=
> set_target_properties(WindowApplicationExample PROPERTIES<BR=
>MINSIZEREL "/SUBSYSTEM:WINDOWS")<BR>endif(WIN32)<BR><BR><BR>-- <BR>John M.=
Drescher<BR></DIV></BLOCKQUOTE></td></tr></table><br>=0A=0A=0A=0A
--0-893666272-1239053689=:7266--
More information about the vtkusers
mailing list