From 714a2978230edbad65e50202c2b8e28b8d102c62 Mon Sep 17 00:00:00 2001 From: Yanyi Wu Date: Fri, 2 May 2025 23:47:37 +0800 Subject: [PATCH] build: update CMakeLists.txt to include additional directories for test configuration - Added include directories for the current binary and test directories to improve test file accessibility. - Ensured proper configuration for test paths in the build process. --- test/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2b38506..0b80d39 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -3,5 +3,10 @@ SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) # Configure test paths configure_file("${CMAKE_CURRENT_SOURCE_DIR}/test_paths.h.in" "${CMAKE_BINARY_DIR}/test/test_paths.h") +INCLUDE_DIRECTORIES( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/test +) + ADD_EXECUTABLE(load_test load_test.cpp) ADD_SUBDIRECTORY(unittest) \ No newline at end of file