From 3eb9e456bb679be6e9440cc62a012fa3ccce211a Mon Sep 17 00:00:00 2001 From: Saveliy Date: Wed, 21 Feb 2024 14:57:49 +0300 Subject: [PATCH] fix automatix tests --- .github/workflows/main.yml | 2 +- sln/FDTD_test/CMakeLists.txt | 2 +- sln/test_FDTD_method/CmakeLists.txt | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e296286..a34ced8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,4 +20,4 @@ jobs: - name: Run tests shell: bash run: | - ${PWD}/sln/build/FDTD_test/Release/FDTD_test.exe --gtest_repeat=2 --gtest_break_on_failure + ${PWD}/sln/build/test_FDTD_method/Release/test_FDTD_method.exe --gtest_repeat=2 --gtest_break_on_failure diff --git a/sln/FDTD_test/CMakeLists.txt b/sln/FDTD_test/CMakeLists.txt index 7049a89..8128385 100644 --- a/sln/FDTD_test/CMakeLists.txt +++ b/sln/FDTD_test/CMakeLists.txt @@ -4,7 +4,7 @@ file(GLOB hdrs "*.h*" "../../include/*.h") #file(GLOB hdrs "*.h*") file(GLOB srcs "*.cpp" "../../src/*.cpp") -add_executable(${target} ${srcs} ${hdrs}) +add_library(${target} ${srcs} ${hdrs}) target_link_libraries(${target} gtest) add_compile_options(/wd4996) diff --git a/sln/test_FDTD_method/CmakeLists.txt b/sln/test_FDTD_method/CmakeLists.txt index 4e1ff8d..552e0be 100644 --- a/sln/test_FDTD_method/CmakeLists.txt +++ b/sln/test_FDTD_method/CmakeLists.txt @@ -5,4 +5,6 @@ file(GLOB hdrs "*.h*" "../../include/*.h" "../../gtest/*.h") file(GLOB srcs "*.cpp" "../../src/*.cpp" "../../test/*.cpp") add_executable(${target} ${srcs} ${hdrs}) -target_link_libraries(${target} gtest) \ No newline at end of file +target_link_libraries(${target} gtest) + +add_compile_options(/wd4996) \ No newline at end of file