Added def/define in main CMakeLists.txt

+ added def for UNIT_TESTING
This commit is contained in:
Jake Goodwin 2025-02-16 10:27:21 -08:00
parent 22c191363e
commit a3d7307d96
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ set(CMAKE_CXX_FLAGS "-Wall -Werror -Wpedantic")
if (UNIT_TESTING) if (UNIT_TESTING)
add_definitions(-DUNIT_TESTING)
if(DEFINED ENV{CPPUTEST_HOME}) if(DEFINED ENV{CPPUTEST_HOME})
message(STATUS "Using CppUTest home: $ENV{CPPUTEST_HOME}") message(STATUS "Using CppUTest home: $ENV{CPPUTEST_HOME}")
set(CPPUTEST_INCLUDE_DIRS $ENV{CPPUTEST_HOME}/include) set(CPPUTEST_INCLUDE_DIRS $ENV{CPPUTEST_HOME}/include)