[CMake] C# and cmake ?

Gerhard den Hollander gdenhollander at fugro-jason.com
Wed Aug 22 08:08:11 EDT 2012


* Yuri Timenkov <yuri at timenkov.ru> (Wed, Aug 22, 2012 at 01:20:37PM +0200)
> It's better to use include_external_msproject with C# projects. After fixing bug http://public.kitware.com/Bug/view.php?id=13120 it's possible to use:
> 
> include_external_msproject(Configurator ${CMAKE_SOURCE_DIR}/MyCSProject.csproj
>     TYPE FAE04EC0-301F-11D3-BF4B-00C04F79EFBC
>     PLATFORM "Any CPU"
>     )


According to the 2.8.9 changelog, this bugfix is part of 2.8.9.


> 
> Additionally you can use configure_file to create file in $(SolutionDir) to pass information (like paths, configuration options, etc.) to msbuild and VS IDE.

> The only drawback is that CMake sees these project as utility projects, so you can't use them in generator expressions. However you can link to them by adding dependencies.

Im not sure what you mean with the above. What are generator
expressions ?





More information about the CMake mailing list