Skip to content

Commit 8a4bb0a

Browse files
authored
bat file to build restc-cpp using vcpkg in windows
build restc-cpp using vcpkg in windows using visual studio 2019 for x86
1 parent 47f08d7 commit 8a4bb0a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build_vc2019_x86_vcpkg.bat

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
rem Example file on how to build under Windows
2+
rem using vcpkg for x86
3+
rem change [path to vcpkg] to your vcpkg directory
4+
5+
rmdir /S /Q build
6+
mkdir build
7+
cd build
8+
rem -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
9+
cmake -DVCPKG_TARGET_TRIPLET=x86-windows -DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 16 2019" -A Win32 ..
10+
cmake --build . --config Debug
11+
cmake --build . --config Release
12+
cd ..

0 commit comments

Comments
 (0)