blob: 0ab0419200b1be1291d3b4369671ae9e29dc96d9 [file] [log] [blame]
add_library(samples_branch_mul_branch_mul_lib
STATIC
branch_mul_c.o
)
set_target_properties(
samples_branch_mul_branch_mul_lib
PROPERTIES
LINKER_LANGUAGE C)
sparrow_test(
NAME
branch_mul_emitc_static
SRCS
"branch_mul.c"
DEPS
samples_branch_mul_branch_mul_lib
iree::base
iree::vm::bytecode::module
iree::hal::local::executable_environment
iree::hal::local::elf::elf_module
LINKOPTS
"LINKER:--defsym=__stack_size__=300k"
"LINKER:--defsym=__heap_size__=750k"
"LINKER:--defsym=__tcm_length__=4M"
TESTFILES
"branch_mul.run"
"branch_mul_bin.run"
)
# Kelvin-only systemc tests
if (${BUILD_WITH_KELVIN})
add_custom_command(
TARGET
samples_branch_mul_branch_mul_emitc_static
POST_BUILD
COMMAND
${CMAKE_OBJCOPY} -g -O binary
branch_mul_emitc_static
branch_mul_emitc_static.bin
BYPRODUCTS
branch_mul_emitc_static.bin
COMMENT
"Objcopy the binary file"
)
endif()