Change tests from a copy to using the original with mocs
This commit is contained in:
2023-11-12 17:07:20 +01:00
parent 04f9dd3d2c
commit e682528e12
7 changed files with 77 additions and 66 deletions

View File

@@ -6,8 +6,14 @@ include_directories(${GTEST_INCLUDE_DIR})
link_directories(${GTEST_LIB_DIR})
# tests
file(GLOB_RECURSE TEST_SOURCES "*.cpp")
add_executable(tests ${TEST_SOURCES})
file(GLOB_RECURSE TEST_SOURCES "*.cpp" "*.c")
add_executable(tests)
target_sources(tests
PRIVATE
${TEST_SOURCES}
../project/Core/Src/tftp.c
)
target_compile_options(tests PRIVATE $<$<CONFIG:Debug>:
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
@@ -22,6 +28,7 @@ target_include_directories(tests
PUBLIC
${CMAKE_CURRENT_LIST_DIR}
${PROJECT_BINARY_DIR}
../project/Core/Inc/
)
include(GoogleTest)