From 06251f8cd6a36f8406bf91874af2211de7e81441 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Thu, 9 Nov 2017 11:09:29 +0100 Subject: make helloworld CMakeLists compile on windows --- test/distrib/cpp/run_distrib_test_cmake.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/distrib') 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 -- cgit v1.2.3