Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/DeveloperPaul123/CMakeInstallExample

Installation example for a C++ project (Windows) with Cmake.
https://github.com/DeveloperPaul123/CMakeInstallExample

Last synced: about 2 months ago
JSON representation

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

Lists

README

        

# 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](https://developerpaul123.github.io/blog) for the full [write up](https://developerpaul123.github.io/programming/creating-an-installer-with-cmake/).

### Requirements

To build this project you will need:

- A relatively recent C++ compiler
- [CMake](https://cmake.org) `3.14+`
- [NSIS](https://nsis.sourceforge.io/Download) `3.0.0+`

### Building

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

```cmake
cmake -B build
```

To build an installer simply run:

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

## Author

| [
@DeveloperPaul123](https://github.com/DeveloperPaul123) |
|:----:|

## License

All the code available under the MIT license. See [LICENSE](LICENSE).