Skip to content

DeveloperPaul123/CMakeInstallExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published