19 lines · plain
1# Here we create a single aggregate shared library with the parts of the CAPI2# that we want to bundle together. Then we link a simple C executable3# against it to demonstrate that it does have the fully self contained4# core MLIR library and our own standalone dialect.5add_mlir_aggregate(StandaloneCAPITestLib6 SHARED7 EMBED_LIBS8 MLIRCAPIIR9 MLIRCAPIArith10 StandaloneCAPI11)12 13add_llvm_executable(standalone-capi-test14 standalone-capi-test.c15)16llvm_update_compile_flags(standalone-capi-test)17target_link_libraries(standalone-capi-test18 PRIVATE StandaloneCAPITestLib)19