<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 6, 2014 at 5:54 PM, Michael Oldfield <span dir="ltr"><<a href="mailto:sag_mal_pluesch@yahoo.com.au" target="_blank">sag_mal_pluesch@yahoo.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 07/05/14 00:25, Rick McGuire wrote:<br>
> Working on converting an existing project to cmake, which is going<br>
> fairly well. I've found answers to most of questions with some quick<br>
> google searches, but I've run into an issue where I've not managed to<br>
> find any answers yet.<br>
><br>
> One part of the project generates two executables with the same name.<br>
> The first is a non-console executable with a .exe extension, the second<br>
> is a console version with a .com extension. I know how to build the<br>
> first, and I can build the second if I give it a different name and use<br>
> a .exe extension, but I've not found a means of getting cmake to<br>
> generate an executable with a .com extension. Has anybody needed to<br>
> deal with this issue before?<br>
<br>
</div></div>Perhaps try set_target_properties?<br>
<br>
set_target_properties(MY_COM_TARGET PROPERTIES SUFFIX ".com")<br>
<br></blockquote><div><br></div><div>that just sets the name, doesn't make a real .com; I don't think cmake has that support... have to add link flags probably also</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's a long time since I've used this, so I can't remember whether you<br>
need the '.' in the property.<br>
<br>
Michael<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div></div>