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