26 lines
953 B
Plaintext
26 lines
953 B
Plaintext
![]() |
https://github.com/google/benchmark
|
||
|
|
||
|
git clone https://github.com/google/benchmark.git
|
||
|
git clone https://github.com/google/googletest.git benchmark/googletest
|
||
|
mkdir build && cd build
|
||
|
|
||
|
cmake ../ -G "Visual Studio 2019" -A "Win32"
|
||
|
|
||
|
Открыть BUILD_ALL.sln и далее скомпилить Release и Debug
|
||
|
Скопировать из build/src/Release либы в lib/Win32/Release
|
||
|
аналогично Debug
|
||
|
|
||
|
------------------
|
||
|
|
||
|
git clone https://github.com/google/benchmark.git
|
||
|
git clone https://github.com/google/googletest.git benchmark/googletest
|
||
|
|
||
|
cmake -E make_directory "build"
|
||
|
cmake -E chdir "build" cmake -DCMAKE_BUILD_TYPE=Release ../
|
||
|
# or use this to auto download googletest:
|
||
|
# cmake -E chdir "build" cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=TRUE, -DCMAKE_BUILD_TYPE=Release ../
|
||
|
cmake --build "build" --config Release
|
||
|
|
||
|
|
||
|
# copy result from build\src\Release into lib folder (i.t. lib\x64\Release)
|
||
|
# repeat for --config Debug and -A Win32
|