From 9d18c40a439b48922a5fbf02613fe71811e1bb10 Mon Sep 17 00:00:00 2001 From: Sander Speetjens Date: Sat, 23 Dec 2023 16:17:21 +0100 Subject: [PATCH] tests Change sources and include to cmake path instead of relative path --- tests/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fcc65b6..283fd79 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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 $<$: @@ -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)