updated to check the git submodule for the header files needed.

This commit is contained in:
jakeg00dwin 2024-03-06 22:09:26 -08:00
parent f7a06af54f
commit c284745e23
1 changed files with 6 additions and 3 deletions

View File

@ -37,11 +37,14 @@ set(CMAKE_CXX_FLAGS "-Wall -Werror -Wpedantic")
# ####################################### # #######################################
# find_library() # find_library()
set(CPPUTEST_DIR "./cpputest/include")
if (UNIT_TESTING) if (UNIT_TESTING)
message(STATUS "CPPUTEST_LIB: ${CPPUTEST_LIB}") include_directories(
add_subdirectory(cpputest) ${CPPUTEST_DIR}/CppUTest
${CPPUTEST_DIR}/CppUTestExt
)
message(STATUS "CPPUTEST_DIR: ${CPPUTEST_DIR}")
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()