Updated with cpputest vars

This commit is contained in:
Jake Goodwin 2026-05-29 23:39:39 -07:00
parent e34b4f47bd
commit 28454182d9

View file

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
# Use the fancy version substitution
project(cmake-cpputest-template
VERSION 1.0
VERSION 0.1.0
DESCRIPTION "template for cmake + cpputest"
LANGUAGES C CXX
)
@ -53,14 +53,14 @@ if (UNIT_TESTING)
message(STATUS "Found CppUTest version ${CPPUTEST_VERSION}")
endif()
include_directories(
${CPPUTEST_INCLUDE_DIRS}
./inc
./mocks
)
link_directories(${CPPUTEST_LIBRARIES})
# Diagnostic Messages for Multi-Platform testing.
message(STATUS "CPPUTEST_LIBRARY_DIRS: ${CPPUTEST_LIBRARY_DIRS}")
message(STATUS "CPPUTEST_INCLUDE_DIRS: ${CPPUTEST_INCLUDE_DIRS}" )
message(STATUS "CPPUTEST_LIBRARIES: ${CPPUTEST_LIBRARIES}" )
include_directories(${CPPUTEST_INCLUDE_DIRS})
link_directories(${CPPUTEST_LIBRARY_DIRS})
add_subdirectory(mocks)
add_subdirectory(tests)
endif()