Build and use

After setting up the environment following the previous Setup section, it is time to start building the Rat C++ libraries using vcpkg.

The Project-Rat libraries are here defined as vcpkg ports. This section describes how ports can serve both vcpkg modes and the workflows to consume (build/use) packages.

        ---
align: center
alt: C++ Project with Rat-vcpkg
name: cpp_project_with_rat_vcpkg
config:
    theme: 'neutral'
---

    flowchart LR
        P(Project)
        Z{combines}
        C(Project compiled with Rat)

        R(Rat-vcpkg)
        RL(Rat libraries)

        P ==>|uses| R
        R ==>|compiles| RL
        RL ==> Z
        P ==> Z
        Z ==> C