| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
This is a sample application to demonstrate how to use the ConfigCat C++ SDK.
On Windows:
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.batOn Linux/Mac:
git clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.shcmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake
cmake --build buildOn Windows:
.\build\example.exeOn Linux/Mac:
./build/examplegit clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.shMakefile uses the VCPKG_ROOT environment variable to install the ConfigCat package and its dependencies.
(export VCPKG_ROOT=[path to vcpkg] && make)./exampleOn Windows:
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.batOn Linux/Mac:
git clone https://github.com/microsoft/vcpkg
./vcpkg/bootstrap-vcpkg.shOpen the Toolchains settings (File > Settings on Windows and Linux, CLion > Preferences on macOS), and go to the CMake settings (Build, Execution, Deployment > CMake). Finally, in CMake options, add the following line:
-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake
git clone https://github.com/microsoft/vcpkg
.\vcpkg\bootstrap-vcpkg.batIn order to use vcpkg with Visual Studio, run the following command (may require administrator elevation):
.\vcpkg\vcpkg integrate installAfter this, you can now create a New non-CMake Project (or open an existing one). All installed libraries are immediately ready to be #include'd and used in your project without additional configuration.
Note
Make sure that on the project's property pages Use Vcpkg Manifest is turned on and C++ Language Standard is C++17.
| Back | FazBrowse Home | New Git URL |