[CMake] Including external non-C/C++ (.NET) Visual Studio Projects in a solution.

GARCIA DE SORIA LUCENA, JUAN JESUS juanj.g_soria at grupobbva.com
Wed Oct 21 05:54:39 EDT 2009


Hi everyone.

In our organization we do both cross-platform software for Windows, Solaris and Linux and, on the Windows side, we end up mixing C++ with C# and VB.NET via SWIG and C++/CLI.

Although it would be fantastic to have integrated support for .NET Visual Studio projects in CMake, we decided we could live with the features provided by the include_external_msproject() command, by using manually managed .csproj and .vbproj projects for the non-C++ projects.

But we found that include_external_msproject() seems to handle .vcproj projects only...

I've opened issue 9742 [0], with two patches (for 2.6.4 and 2.8.0-rc3) making it work for us. Currently only C# (.csproj) and VB.NET (.vbproj) projects are supported, although I suppose it would be trivial to add support for J#.

Configuration matching is done in a rather hard-coded way, as described in the bug report, mostly because I don't know how to make it configurable.

Also I suppose that the issue raised in [1] could be a candidate to be handled in the same way...

We would like the functionality of the patches to be merged into CMake, so that we don't have to maintain our own CMake tree. Is this possible?


Best regards,

   Juan Jesus.



[0] http://public.kitware.com/Bug/view.php?id=9742
[1] http://www.mail-archive.com/cmake@cmake.org/msg13326.html


More information about the CMake mailing list