TFTP
Change tests from a copy to using the original with mocs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user