mirror of https://github.com/orefkov/simstr.git
Поправил файлы сборки
This commit is contained in:
parent
fb0e2f172a
commit
42e2e3a6be
|
|
@ -99,6 +99,7 @@ if(SIMSTR_BUILD_TESTS)
|
||||||
googletest
|
googletest
|
||||||
# Specify the commit you depend on and update it regularly.
|
# Specify the commit you depend on and update it regularly.
|
||||||
URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip
|
URL https://github.com/google/googletest/archive/refs/tags/release-1.12.1.zip
|
||||||
|
FIND_PACKAGE_ARGS NAMES GTest
|
||||||
)
|
)
|
||||||
|
|
||||||
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
||||||
|
|
@ -114,6 +115,7 @@ function(GBencmark)
|
||||||
googlebench
|
googlebench
|
||||||
# Specify the commit you depend on and update it regularly.
|
# Specify the commit you depend on and update it regularly.
|
||||||
URL https://github.com/google/benchmark/archive/refs/tags/v1.7.0.zip
|
URL https://github.com/google/benchmark/archive/refs/tags/v1.7.0.zip
|
||||||
|
FIND_PACKAGE_ARGS NAMES benchmark
|
||||||
)
|
)
|
||||||
set(CMAKE_CXX_STANDARD 20)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(BENCHMARK_ENABLE_TESTING OFF)
|
set(BENCHMARK_ENABLE_TESTING OFF)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
cmake_minimum_required (VERSION 3.15)
|
cmake_minimum_required (VERSION 3.15)
|
||||||
|
|
||||||
add_executable(benchStr bench_str.cpp bench.h)
|
add_executable(benchStr bench_str.cpp bench.h)
|
||||||
target_link_libraries(benchStr simstr_simstr benchmark::benchmark benchmark::benchmark_main)
|
target_link_libraries(benchStr simstr::simstr benchmark::benchmark benchmark::benchmark_main)
|
||||||
|
|
||||||
add_executable(process_result process_result.cpp)
|
add_executable(process_result process_result.cpp)
|
||||||
target_link_libraries(process_result simstr_simstr)
|
target_link_libraries(process_result simstr_simstr)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
add_executable(testStr test_str.cpp)
|
add_executable(testStr test_str.cpp)
|
||||||
target_link_libraries(testStr simstr_simstr gtest_main)
|
target_link_libraries(testStr simstr::simstr GTest::gtest_main)
|
||||||
add_test(NAME testStr COMMAND testStr)
|
add_test(NAME testStr COMMAND testStr)
|
||||||
|
|
||||||
if (EMSCRIPTEN)
|
if (EMSCRIPTEN)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue