https://github.com/ptsouchlos/CMakeInstallExample
Installation example for a C++ project (Windows) with Cmake.
https://github.com/ptsouchlos/CMakeInstallExample
Last synced: 4 months ago
JSON representation
Installation example for a C++ project (Windows) with Cmake.
- Host: GitHub
- URL: https://github.com/ptsouchlos/CMakeInstallExample
- Owner: DeveloperPaul123
- License: mit
- Created: 2017-03-29T00:28:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T12:17:40.000Z (almost 5 years ago)
- Last Synced: 2024-12-31T07:28:55.654Z (over 1 year ago)
- Language: CMake
- Size: 10.7 KB
- Stars: 36
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CMakeInstallExample
Installation example for a C++ project (Windows) with Cmake.
## 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).