Enable definitions propagation for tests

This commit is contained in:
Alexey Rybalchenko
2018-08-27 17:34:36 +02:00
committed by Dennis Klein
parent 7d5e76dece
commit 5303e916fb
2 changed files with 17 additions and 3 deletions

View File

@@ -30,6 +30,9 @@ add_testhelper(runTestDevice
LINKS FairMQ
)
if(BUILD_NANOMSG_TRANSPORT)
set(definitions DEFINITIONS BUILD_NANOMSG_TRANSPORT)
endif()
set(MQ_CONFIG "${CMAKE_BINARY_DIR}/test/testsuite_FairMQ.IOPatterns_config.json")
set(RUN_TEST_DEVICE "${CMAKE_BINARY_DIR}/test/testhelper_runTestDevice")
@@ -55,6 +58,7 @@ add_testsuite(FairMQ.Protocols
${CMAKE_CURRENT_BINARY_DIR}
TIMEOUT 30
RUN_SERIAL ON
${definitions}
)
add_testsuite(FairMQ.Parts
@@ -77,6 +81,7 @@ add_testsuite(FairMQ.MessageResize
INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/message_resize
${CMAKE_CURRENT_BINARY_DIR}
TIMEOUT 5
${definitions}
)
add_testsuite(FairMQ.Device