stasis-aries-wal/test/stasis/fault_injection/CMakeLists.txt

16 lines
608 B
CMake

IF(HAVE_GETLINE) # XXX HACK. Assume we're not on linux if we don't have getline, then don't even try to get this directory to build.
ADD_EXECUTABLE(check_faultInjection fitest.c fisubject.c fichecker.c)
TARGET_LINK_LIBRARIES(check_faultInjection ${COMMON_LIBRARIES})
SET_TARGET_PROPERTIES(check_faultInjection PROPERTIES
PREFIX ""
LINK_FLAGS -Wl,--wrap,malloc,--wrap,fwrite,--wrap,pwrite,--wrap,pwrite64
)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/config.txt
${CMAKE_CURRENT_BINARY_DIR}/config.txt
COPYONLY
)
ADD_TEST(check_faultInjection check_faultInjection)
ENDIF(HAVE_GETLINE)