Change sources and include to cmake path instead of relative path
This commit is contained in:
2023-12-23 16:17:21 +01:00
parent fc87693d64
commit 9d18c40a43

View File

@@ -17,9 +17,10 @@ target_compile_definitions(tests
target_sources(tests target_sources(tests
PRIVATE PRIVATE
${TEST_SOURCES} ${TEST_SOURCES}
../project/Core/Src/tftp.c ${CMAKE_SOURCE_DIR}
../project/Core/Src/llfs_data.c ${CMAKE_SOURCE_DIR}/project/Core/Src/llfs_data.c
../project/Core/Src/llfs.c ${CMAKE_SOURCE_DIR}/project/Core/Src/llfs.c
${CMAKE_SOURCE_DIR}/project/Core/Src/tftp.c
) )
target_compile_options(tests PRIVATE $<$<CONFIG:Debug>: target_compile_options(tests PRIVATE $<$<CONFIG:Debug>:
@@ -35,7 +36,7 @@ target_include_directories(tests
PUBLIC PUBLIC
${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}
${PROJECT_BINARY_DIR} ${PROJECT_BINARY_DIR}
../project/Core/Inc/ ${CMAKE_SOURCE_DIR}/project/Core/Inc/
) )
include(GoogleTest) include(GoogleTest)