Skip to content

Packaging ​

swaggercpp is distributed through multiple channels. Pick the one that matches your toolchain.

Channels ​

ChannelRecommended for
vcpkgMost C++ projects; manifest or classic mode
ConanTeams already on Conan profiles
CMake packageConsumers that install into a fixed prefix
FetchContentHermetic, fully source-built pipelines

At a glance ​

vcpkg manifest ​

json
// vcpkg.json
{ "dependencies": [ "swaggercpp" ], "builtin-baseline": "<sha>" }

Conan ​

ini
# conanfile.txt
[requires]
swaggercpp/0.4.0

CMake find_package ​

cmake
find_package(swaggercpp CONFIG REQUIRED)
target_link_libraries(app PRIVATE swaggercpp::swaggercpp)

FetchContent ​

cmake
FetchContent_Declare(swaggercpp
  GIT_REPOSITORY https://github.com/stescobedo92/swagger-cpp.git
  GIT_TAG v0.4.0)
FetchContent_MakeAvailable(swaggercpp)

See each page for full setup, trade-offs, and gotchas.

Released under the MIT License.