This will generate an cpack installer. By default on Windows it uses the NSIS generator to create it.
You will need NSIS installed or the WiX toolkit to make an MSI.
cpack -G WIX
Will generate an MSI if the WiX toolkit is installed. There are other installer types as well but untested
Generators
7Z = 7-Zip file format
DEB = Debian packages
External = CPack External packages
IFW = Qt Installer Framework
NSIS = Null Soft Installer
NSIS64 = Null Soft Installer (64-bit)
NuGet = NuGet packages
STGZ = Self extracting Tar GZip compression
TBZ2 = Tar BZip2 compression
TGZ = Tar GZip compression
TXZ = Tar XZ compression
TZ = Tar Compress compression
TZST = Tar Zstandard compression
WIX = MSI file format via WiX tools
ZIP = ZIP file format
Its generated by cpack. From the source directory:
mkdir .build cd .build cmake .. cmake –build . –target package
This will generate an cpack installer. By default on Windows it uses the NSIS generator to create it. You will need NSIS installed or the WiX toolkit to make an MSI.
cpack -G WIX
Will generate an MSI if the WiX toolkit is installed. There are other installer types as well but untested
Generators 7Z = 7-Zip file format DEB = Debian packages External = CPack External packages IFW = Qt Installer Framework NSIS = Null Soft Installer NSIS64 = Null Soft Installer (64-bit) NuGet = NuGet packages STGZ = Self extracting Tar GZip compression TBZ2 = Tar BZip2 compression TGZ = Tar GZip compression TXZ = Tar XZ compression TZ = Tar Compress compression TZST = Tar Zstandard compression WIX = MSI file format via WiX tools ZIP = ZIP file format