From c284745e238106b652f0a4c905bf5fd07e64f428 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Wed, 6 Mar 2024 22:09:26 -0800 Subject: [PATCH] updated to check the git submodule for the header files needed. --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4516e67..5eb4bd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,11 +37,14 @@ set(CMAKE_CXX_FLAGS "-Wall -Werror -Wpedantic") # ####################################### # find_library() - +set(CPPUTEST_DIR "./cpputest/include") if (UNIT_TESTING) - message(STATUS "CPPUTEST_LIB: ${CPPUTEST_LIB}") - add_subdirectory(cpputest) + include_directories( + ${CPPUTEST_DIR}/CppUTest + ${CPPUTEST_DIR}/CppUTestExt + ) + message(STATUS "CPPUTEST_DIR: ${CPPUTEST_DIR}") add_subdirectory(tests) endif()