Looking for a command line packaging tutorial for Windows 10

All,

Just looking for someone to point me to a step-by-step tutorial for a command line CMake build not using mingw, WSL, or any other non-native Windows emulators, to build and package a C/C++ library under Windows 10.

One run-time having just dll files

Another full development including headers and .cmake files.

A non-zip file that can be taken to any other Windows 10 system and installed.

Not that the project should matter, but I’m working on BasisDoctrina. Haven’t done Windows development since Windows was fraudulently marketed as an operating system when it was just GUI-DOS. (Pre-Windows NT for those not old enough to remember.) Been doing Linux packaging and development for a long time. This library will need to also run on Windows, so before there is really anything to it, I want to get the build plumbing in place.

Thanks,

This isn’t exactly a tutorial, but I have full MSI and ZIP packaging for my github project Iterated Dynamics. As far as the command-line goes, it’s simply:

cmake --workflow --preset release

or you could run cpack only

cpack --preset release

I did a presentation using CPack 5 years ago: Installation and Packaging with CPack

I can try and answer whatever questions you might have. The only difficult part is setting all the appropriate CPack variables/properties for the different generators (e.g. WiX, ZIP).

Thank you.

I will take a gander over the next few days once I get done digging out from under snow, etc.