This document explains how to use slick-net with vcpkg package manager.
Once the port is published to the official vcpkg registry:
vcpkg install slick-netCreate vcpkg.json in your project root:
{
"name": "my-project",
"version": "1.0.0",
"dependencies": [
"slick-net"
]
}cmake_minimum_required(VERSION 3.20)
project(my_project)
set(CMAKE_CXX_STANDARD 20)
# Find slick-net package
find_package(slick-net CONFIG REQUIRED)
add_executable(my_app main.cpp)
target_link_libraries(my_app PRIVATE slick::net)Then configure with CMake:
cmake -B build -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
cmake --build buildgit clone https://github.com/YOUR_USERNAME/vcpkg.git
cd vcpkg[path to vcpkg]/ports/slick-net/
├── portfile.cmake # Build instructions
├── vcpkg.json # Package manifest
└── usage # Usage instructions for users
When releasing a new slick-net version (in slick-net repo):
-
Update version in
CMakeLists.txt -
Update
CHANGELOG.md -
Rlease the new version in slick-net repository
git tag v<new_verson_number> git push origin v<new_version_number>
After the draft release created in https://github.com/SlickQuant/slick-net/releases, click the edit icon then publish the new release.
-
Calculate SHA512 of Release Archive
curl -L https://github.com/SlickQuant/slick-net/archive/refs/tags/v<new_version>.tar.gz | sha512sum
-
Update SHA512 in
[path to vcpkg]/ports/slick-net/portfile.cmake -
Update version in
[path to vcpkg]/ports/slick-net/vcpkg.json -
Add Version Information
./vcpkg x-add-version slick-net
-
Test locally
./vcpkg remove slick-net ./vcpkg install slick-net
-
Submit Pull Request
- Create a branch:
git checkout -b update-slick-net-to-<new_version> - Add changed files:
git add * - Commit changes:
git commit -am "[slick-net] update to v<new_version>" - Push:
git push origin update-slick-net-to-<new_version> - Open PR at https://github.com/microsoft/vcpkg
- Create a branch:
- Verify SHA512 hash matches the release archive
- Check that all dependencies are available in vcpkg
- Ensure CMake version >= 3.20
- Verify vcpkg toolchain file is set:
-DCMAKE_TOOLCHAIN_FILE=[vcpkg]/scripts/buildsystems/vcpkg.cmake - Check that slick-net is installed:
vcpkg list | grep slick - Ensure you're using
CONFIGmode:find_package(slick-net CONFIG REQUIRED)