<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
What I use:<br>
<br>
# tell linker this is windows app<br>
IF(WIN32)<br>
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}
/subsystem:windows") <br>
ENDIF(WIN32)<br>
<br>
<div class="moz-cite-prefix">On 2/11/2013 5:39 PM, Bryn Aspestrand
wrote:<br>
</div>
<blockquote
cite="mid:20C885E056F52A41B56545C11A470C9A45F53328@MBX215.domain.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
..MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hey there. I was wondering if somebody
could help me.. I’m writing a Qt GUI application. When I
launch it, the console comes up with the application. I would
like it to be a windowed application only. I tried the
following but the subsystem is still being set to “console”
when I load my sln in visual studio 2010<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> IF (WIN32)<o:p></o:p></p>
<p class="MsoNormal">
SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_DEBUG
"/SUBSYSTEM:windows")<o:p></o:p></p>
<p class="MsoNormal">
SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_RELEASE
"/SUBSYSTEM:windows")<o:p></o:p></p>
<p class="MsoNormal">
SET_TARGET_PROPERTIES (myapp PROPERTIES LINK_FLAGS_MINSIZEREL
"/SUBSYSTEM:windows")<o:p></o:p></p>
<p class="MsoNormal">
SET_TARGET_PROPERTIES (myapp PROPERTIES
LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:windows")<o:p></o:p></p>
<p class="MsoNormal"> ENDIF (WIN32)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve tried “windows”, “WINDOWS”, “foo”…
nothing seems to change the subsystem.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is this a known issue or am I doing
something wrong?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">BA<o:p></o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>