aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/distrib
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2017-11-09 11:09:29 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-12-01 10:07:43 +0100
commit06251f8cd6a36f8406bf91874af2211de7e81441 (patch)
tree5518f9c22779ea6e31559267d10bb976b5276f6b /test/distrib
parent3c93a1982d34c23f685f148ce2d94f078bd8828a (diff)
make helloworld CMakeLists compile on windows
Diffstat (limited to 'test/distrib')
-rw-r--r--test/distrib/cpp/run_distrib_test_cmake.bat10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/distrib/cpp/run_distrib_test_cmake.bat b/test/distrib/cpp/run_distrib_test_cmake.bat
index 58d4a2a4c9..ac4f6b77c0 100644
--- a/test/distrib/cpp/run_distrib_test_cmake.bat
+++ b/test/distrib/cpp/run_distrib_test_cmake.bat
@@ -57,6 +57,16 @@ cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% -DOPENSSL_ROOT_DIR=C:/OpenSSL-Win32 -
cmake --build . --config Release --target install || goto :error
cd ../..
+# Build helloworld example using cmake
+cd examples/cpp/helloworld
+mkdir cmake
+cd cmake
+mkdir build
+cd build
+cmake -DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% ../.. || goto :error
+cmake --build . --config Release || goto :error
+cd ../../../../..
+
goto :EOF
:error