CommonLibSF is available as a vcpkg port. To add it to your project,
- Create a
vcpkg-configuration.json
file in your project root (next tovcpkg.json
) with the following OR append to your existingvcpkg.json
:
{
"default-registry": {
"kind": "git",
"repository": "https://github.com/microsoft/vcpkg",
"baseline": "7a6f366cefd27210f6a8309aed10c31104436509"
},
"registries": [
{
"kind": "git",
"repository": "https://github.com/Starfield-Reverse-Engineering/Starfield-RE-vcpkg",
"baseline": "b724c4585ff8ee65dcbfd40bb9ea62fc523af7c2",
"packages": ["commonlibsf"]
}
]
}
- Add CommonLibSF to the
"dependencies"
key invcpkg.json
:
{
"dependencies": ["commonlibsf"]
}
- Add the following to your
CMakeLists.txt
:
find_package(CommonLibSF CONFIG REQUIRED)
add_commonlibsf_plugin(
${PROJECT_NAME}
AUTHOR AuthorName
SOURCES ${headers} ${sources}
)