A .NET Forms -based, managed C++ project is certainly not the typical output of a CMake project.<div><br></div><div>CMake is largely focused on cross-platform C++ projects. Believe it or not, you may be the first to attempt to do this and expect it to work...</div>
<div><br></div><div>If this is just a piece of a larger project, you could certainly use Visual Studio to build an existing *.vcproj file, either via the include_external_msproject command or via CMake's ExternalProject module.</div>
<div><br></div><div> <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:include_external_msproject">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:include_external_msproject</a></div><div><br>
</div><div><div> <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:ExternalProject">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:ExternalProject</a></div><div><br></div><div><br></div><div>
HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Sat, Jul 2, 2011 at 10:43 AM, Simon Adler <span dir="ltr"><<a href="mailto:cmake@cg-effects.de">cmake@cg-effects.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I tried some more.<br>
I changed the Headers in the VS2008 Project (generated by cmake)<br>
manually to type Header-Formula.<br>
I tried to enter the Form-Designer with a double-Click on a Form, but<br>
VS2008 showed me that the form is now corrupt. So i have to alter my<br>
question:<br>
<br>
Is it even possible to generate a cmake Projekt using .NET Forms?<br>
<br>
Greetings<br>
<font color="#888888"><br>
Simon<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
On Sat, Jul 2, 2011 at 1:01 PM, Simon Adler <<a href="mailto:cmake@cg-effects.de">cmake@cg-effects.de</a>> wrote:<br>
> Hello Mailing List<br>
><br>
> i am quite new to CMake. I have a project i originally build with<br>
> visual studio 2008.<br>
> I try to create a cmake Projekt so i can use cmake in the future.<br>
> I am using .NET Forms which are Headers with associated resx files. In<br>
> Visual-Studio the only<br>
> difference between Headers and Forms are that the FileType differs (In<br>
> the propierties)<br>
><br>
> How can I change this for a header via cmake?<br>
><br>
> # find header in current folder<br>
> file (GLOB fhead "*.h")<br>
> foreach ( filename ${fhead} )<br>
> GET_FILENAME_COMPONENT( filepath ${filename} PATH )<br>
> GET_FILENAME_COMPONENT( filebase ${filename} NAME_WE )<br>
> SET(Source "${filepath}/${filebase}.cpp")<br>
> SET(Res "${filepath}/${filebase}.resx")<br>
> if (EXISTS ${Res}) # a resx exists, so it IS a form<br>
> SET(FormHeader ${FormHeader} ${filename})<br>
> if (EXISTS ${Source}) # there is an additional implementation file<br>
> SET(FormSource ${FormSource} ${Source})<br>
> endif (EXISTS ${Source})<br>
> endif (EXISTS ${Res})<br>
> endforeach ( filename )<br>
><br>
> With this code i got the forms how i expect it, but every header is<br>
> just a Header and not<br>
> konwn as formular to visual studio<br>
><br>
> Hope some may give me a hint.<br>
><br>
> Thank you very much<br>
><br>
> Simon<br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
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>
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>
</div></div></blockquote></div><br></div></div>