Added compile definition for usage in source files and headers.
This commit is contained in:
parent
487040e99b
commit
a7665dab79
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@ set(CMAKE_CXX_FLAGS "-Wall -Werror -Wpedantic")
|
|||
|
||||
|
||||
if (UNIT_TESTING)
|
||||
|
||||
|
||||
#Allows usage of preprossor stuff in your files.
|
||||
add_compile_definitions(UNIT_TESTING=1)
|
||||
if(DEFINED ENV{CPPUTEST_HOME})
|
||||
message(STATUS "Using CppUTest home: $ENV{CPPUTEST_HOME}")
|
||||
set(CPPUTEST_INCLUDE_DIRS $ENV{CPPUTEST_HOME}/include)
|
||||
|
|
Loading…
Add table
Reference in a new issue