All Projects → DeveloperPaul123 → CMakeInstallExample

DeveloperPaul123 / CMakeInstallExample

Licence: MIT License
Installation example for a C++ project (Windows) with Cmake.

Programming Languages

CMake
9771 projects
C++
36643 projects - #6 most used programming language

CMakeInstallExample

Installation example for a C++ project (Windows) with Cmake.

License MIT Say thanks Discord

Contents

This project demonstrates how to use cmake with cpack to generate an installer that can be used to redistribute software/libraries. See my blog for the full write up.

Requirements

To build this project you will need:

  • A relatively recent C++ compiler
  • CMake 3.14+
  • NSIS 3.0.0+

Building

Configure and build using CMake and your favorite build tools. I've tested using Visual Studio Community Edition 2019

cmake -B build

To build an installer simply run:

cmake --build ./build --config Release --target package

Author


@DeveloperPaul123

License

All the code available under the MIT license. See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].