1 function(_add_capi_test_executable name)
2 cmake_parse_arguments(ARG
7 set(LLVM_LINK_COMPONENTS
9 add_llvm_executable(${name}
10 PARTIAL_SOURCES_INTENDED
11 ${ARG_UNPARSED_ARGUMENTS})
12 llvm_update_compile_flags(${name})
13 if(MLIR_BUILD_MLIR_C_DYLIB)
14 target_link_libraries(${name} PRIVATE
17 target_link_libraries(${name} PRIVATE
20 endfunction(_add_capi_test_executable)
22 _add_capi_test_executable(mlir-capi-execution-engine-test
26 MLIRCAPIExecutionEngine
30 _add_capi_test_executable(mlir-capi-ir-test
38 _add_capi_test_executable(mlir-capi-llvm-test
46 _add_capi_test_executable(mlir-capi-pass-test
54 _add_capi_test_executable(mlir-capi-sparse-tensor-test