mirror of
https://github.com/mariadb-corporation/mariadb-connector-cpp.git
synced 2025-07-28 07:14:01 +00:00
18 lines
563 B
Bash
Executable File
18 lines
563 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
# Check out the library.
|
|
git clone https://github.com/google/benchmark.git
|
|
# Go to the library root directory
|
|
cd benchmark
|
|
# Make a build directory to place the build output.
|
|
cmake -E make_directory "build"
|
|
# Generate build system files with cmake, and download any dependencies.
|
|
cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=on -DCMAKE_BUILD_TYPE=Release ../
|
|
# or, starting with CMake 3.13, use a simpler form:
|
|
# cmake -DCMAKE_BUILD_TYPE=Release -S . -B "build"
|
|
# Build the library.
|
|
cmake --build "build" --config Release
|
|
|