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.
- Host: GitHub
- URL: https://github.com/DeveloperPaul123/CMakeInstallExample
- Owner: DeveloperPaul123
- License: mit
- Created: 2017-03-29T00:28:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T12:17:40.000Z (almost 3 years ago)
- Last Synced: 2024-05-01T13:57:09.552Z (about 2 months ago)
- Language: CMake
- Size: 10.7 KB
- Stars: 32
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-cmake - CMakeInstallExample - Installation example for a C++ project (Windows) with Cmake. ```[NO LICENSE]``` (Examples / Templates)
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).