https://github.com/samuelmarks/cmake-example-with-vcpkg
CMake example project with vcpkg dependencies
https://github.com/samuelmarks/cmake-example-with-vcpkg
Last synced: about 1 year ago
JSON representation
CMake example project with vcpkg dependencies
- Host: GitHub
- URL: https://github.com/samuelmarks/cmake-example-with-vcpkg
- Owner: SamuelMarks
- License: other
- Created: 2021-07-01T13:24:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T04:36:06.000Z (almost 5 years ago)
- Last Synced: 2025-03-23T01:27:58.598Z (over 1 year ago)
- Language: CMake
- Size: 87.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
CMake project for vcpkg integration
===================================
[](https://github.com/SamuelMarks/cmake-example-with-vcpkg/actions/workflows/build-and-test.yml)
[](https://opensource.org/licenses/Apache-2.0)
[](https://en.wikipedia.org/wiki/C89_(C_version))
CMake has become the default 'standard' for cross-platform builds; popularly for C and C++.
This project aims to be a good starter for cross-platform third-party dependencies with CMake and vcpkg.
## vcpkg
[`vcpkg`](https://vcpkg.io) is an open-source cross-platform library package management system from [Microsoft](https://microsoft.com); targeting macOS, Linux, and Windows.
It's very popular, and has strong CMake integration. Henceforth, it is chosen for this project as an example of third-party library integration.
[Install vcpkg](https://vcpkg.io/en/getting-started.html), configure it with your system. Then run:
[root]/vcpkg/vcpkg install zlib openssl
## Build
$ mkdir 'cmake-build-debug' && cd "$_"
$ cmake -DCMAKE_TOOLCHAIN_FILE='[root]/vcpkg/scripts/buildsystems/vcpkg.cmake' \
-DCMAKE_BUILD_TYPE='Debug' \
..
$ cmake --build .
---
This project originally was based upon the official `cmake\Help\guide\tutorial\Complete` at [`0fdfd6bf`](https://gitlab.kitware.com/cmake/cmake/-/tree/0fdfd6bf/Help/guide/tutorial/Complete).
---
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or )
- MIT license ([LICENSE-MIT](LICENSE-MIT) or )
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.