Need a common way to reference CMakeLists.txt projects from a csproj
See original GitHub issueThis is of use in https://github.com/dotnet/winforms/pull/1932
See https://github.com/dotnet/winforms/pull/1932#discussion_r325710760
We’d basically like to extract the behavior present in coreclr (https://github.com/dotnet/coreclr/blob/master/Documentation/building/test-configuration.md) where you can write
<ProjectReference Include="../NativeDll/CMakeLists.txt" />
This is useful to many different .NET Core projects, not just coreclr. I’d like to use it in winforms but also WPF would need to be able to test interop scenarios similarily
Issue Analytics
- State:
- Created 4 years ago
- Comments:21 (21 by maintainers)
Top Results From Across the Web
c# - Add reference of one CSharp project to another ...
Cmake uses cmake.txt for the projects which in turn uses csproj file to ... A. Hence we want to add reference of project...
Read more >Include a CMakeLists.txt project inside a Visual Studio ...
To include a CMakeLists.txt project, you can choose File > Open > Folder to open a folder containing a CMakeLists.txt file or choose...
Read more >CMake projects in Visual Studio
How to create and build C++ projects using CMake in Visual Studio. ... CMake project files (such as CMakeLists.txt ) are consumed directly ......
Read more >Source files not showing up in CMake project
We demand out-of-source builds, so the generated CMake files go into a "build" directory. From the command line, you can then run a...
Read more >CMakeLists.txt | CLion Documentation
CMakeLists.txt file contains a set of directives and instructions describing the project's source files and targets (executable, library, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve been working locally on making a new SDK to add to Arcade that would drive our CMake builds in the runtime repo. I could definitely add a feature that enables referencing a CMakeLists.txt from another project through this SDK.
I’m going to do a little bit of work testing it out with CoreCLR before I put out a PR here.
That is a bit more complicated since there would be complexity with parallel build, but of course would be preferred. It does increase the work and testing burden significantly.
We do indeed. However, that needs to be propagated to all CMake generated projects so that those projects are also aware of the layout. In order to do that CMake needs to know about the additional build flavour (
Checked
) and ensure that configuration is described properly with respect to compiler flags et al. Also of note, I don’t believe the defaultRelease
build configuration in CMake passes the “generate symbol files” compiler flag, so that configuration’s flags must also be updated in a global way.There is also the IDE support question. If the user loads the
.csproj
file in VS or some other IDE, is the expectation that theProjectReference
tags will be respected? Probably not a blocker, but this is similar to my initial post about defining the expectations for the work done by the Arcade team. @markwilkie’s suggestion of creating a proof-of-concept (POC) in the WinForms repo so the Arcade team can understand a second example of desired support would be the ideal way to make the case.