Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malaterre/cmake-nuget
https://github.com/malaterre/cmake-nuget
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/malaterre/cmake-nuget
- Owner: malaterre
- Created: 2023-05-09T19:11:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-11T07:58:42.000Z (over 1 year ago)
- Last Synced: 2024-10-29T09:20:19.139Z (about 2 months ago)
- Language: CMake
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CMake-Nuget
```
cmake -S . -B build
cmake --build build
cmake --build build --target package
```This repo is an attempt to create a NuGet/Native package using CMake framework (no hand-written .csproj).
Usage:
```
> cat .\Program.cs
using ClassLibrary;Console.WriteLine("Hello, World!");
var obj = new Class();
obj.Run();
```with:
```
> cat .\HelloWorld.csproj
Exe
net6.0
enable
enable
None
```
Documentation:
* https://cmake.org/cmake/help/latest/cpack_gen/nuget.htmlIssues:
* https://gitlab.kitware.com/cmake/cmake/-/issues/24892References:
* https://github.com/Mizux/dotnet-native/
* https://stackoverflow.com/questions/63175277/cpack-nuget-native-library
* https://jho.pe/posts/nuget-native-deps/
* https://stackoverflow.com/questions/10113532/how-do-i-fix-the-visual-studio-compile-error-mismatch-between-processor-archit