Unverified Commit 2bc7ada1 authored by guoshzhao's avatar guoshzhao Committed by GitHub
Browse files

Benchmarks: Add Feature - Add script to build all cmake benchmark projects. (#72)

* add script to build all native benchmarks with cmake.
parent 0b2952d4
#!/bin/bash
# Copyright (c) Microsoft Corporation - All rights reserved
# Licensed under the MIT License
SB_MICRO_PATH="${SB_MICRO_PATH:-/usr/local/bin}"
SB_MICRO_LIB="${SB_MICRO_LIB:-/usr/local/lib}"
for dir in micro_benchmarks/*/ ; do
if [ -f $dir/CMakeLists.txt ]; then
SOURCE_DIR=$dir
BUILD_ROOT=$dir/build
mkdir -p $BUILD_ROOT
cmake -DCMAKE_INSTALL_PREFIX=$SB_MICRO_PATH -DCMAKE_BUILD_TYPE=Release -S $SOURCE_DIR -B $BUILD_ROOT
cmake --build $BUILD_ROOT --target install
fi
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment