Поправил файлы сборки

This commit is contained in:
Aleksandr Orefkov 2025-11-12 21:47:40 +03:00
parent fb0e2f172a
commit 42e2e3a6be
3 changed files with 4 additions and 2 deletions

View File

@ -99,6 +99,7 @@ if(SIMSTR_BUILD_TESTS)
googletest
# Specify the commit you depend on and update it regularly.
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
@ -114,6 +115,7 @@ function(GBencmark)
googlebench
# Specify the commit you depend on and update it regularly.
URL https://github.com/google/benchmark/archive/refs/tags/v1.7.0.zip
FIND_PACKAGE_ARGS NAMES benchmark
)
set(CMAKE_CXX_STANDARD 20)
set(BENCHMARK_ENABLE_TESTING OFF)

View File

@ -4,7 +4,7 @@
cmake_minimum_required (VERSION 3.15)
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)
target_link_libraries(process_result simstr_simstr)

View File

@ -3,7 +3,7 @@
#
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)
if (EMSCRIPTEN)