set XTEST compile definition so that the assert header works properly
This commit is contained in:
parent
29b2185728
commit
833f548d5d
|
@ -17,6 +17,7 @@ set(XTEST_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|||
|
||||
function(add_xtest_executable TARGET)
|
||||
add_executable(${TARGET} ${ARGN})
|
||||
target_compile_definitions(${TARGET} PRIVATE XTEST)
|
||||
target_include_directories(${TARGET} AFTER PRIVATE "${XTEST_SOURCE_DIR}/include/xtest")
|
||||
target_include_directories(${TARGET} SYSTEM BEFORE PRIVATE "${XTEST_SOURCE_DIR}/include/xtest-assert")
|
||||
target_link_libraries(${TARGET} xtest)
|
||||
|
|
Loading…
Reference in a new issue