mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
1.2 KiB
1.2 KiB
Here's how you can install Crow on your Windows machine.
Getting and Compiling Crow
Using A package manager
VCPKG
Crow can be simply installed through VCPKG using the command vcpkg install crow
Manually (source or release)
Microsoft Visual Studio 2019 and VCPKG
The following guide will use example_with_all.cpp
as the Crow application for demonstration purposes. VCPKG will be used only to install Crow's dependencies.
- Generate
crow_all.h
by navigating to thescripts
folder and runningpython3 merge_all.py ..\include crow_all.h
. git clone https://github.com/microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
.\vcpkg\vcpkg integrate install
- Create empty Visual Studio project.
- In solution explorer, right click the name of your project then click
Open Folder in File Explorer
. - Copy
crow_all.h
,example_with_all.cpp
,vcpkg.json
to opened folder. - Add
crow_all.h
toHeader Files
andexample_with_all.cpp
toSource Files
. - In solution explorer, right click the name of your project then click
Properties
. - Under
vcpkg
, setUse Vcpkg Manifest
toYes
andAdditional Options
to--feature-flags="versions"
. - Set
Debug/Release
andx64/x86
. - Run.