tests
Change sources and include to cmake path instead of relative path
This commit is contained in:
@@ -17,9 +17,10 @@ target_compile_definitions(tests
|
||||
target_sources(tests
|
||||
PRIVATE
|
||||
${TEST_SOURCES}
|
||||
../project/Core/Src/tftp.c
|
||||
../project/Core/Src/llfs_data.c
|
||||
../project/Core/Src/llfs.c
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/project/Core/Src/llfs_data.c
|
||||
${CMAKE_SOURCE_DIR}/project/Core/Src/llfs.c
|
||||
${CMAKE_SOURCE_DIR}/project/Core/Src/tftp.c
|
||||
)
|
||||
|
||||
target_compile_options(tests PRIVATE $<$<CONFIG:Debug>:
|
||||
@@ -35,7 +36,7 @@ target_include_directories(tests
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
${PROJECT_BINARY_DIR}
|
||||
../project/Core/Inc/
|
||||
${CMAKE_SOURCE_DIR}/project/Core/Inc/
|
||||
)
|
||||
|
||||
include(GoogleTest)
|
||||
|
||||
Reference in New Issue
Block a user