1# Here we create a single aggregate shared library with the parts of the CAPI 2# that we want to bundle together. Then we link a simple C executable 3# against it to demonstrate that it does have the fully self contained 4# core MLIR library and our own standalone dialect. 5add_mlir_aggregate(StandaloneCAPITestLib 6 SHARED 7 EMBED_LIBS 8 MLIRCAPIIR 9 # TODO: Remove this in favor of showing fine grained dialect registration 10 # (once available). 11 MLIRCAPIRegisterEverything 12 StandaloneCAPI 13) 14 15add_llvm_executable(standalone-capi-test 16 standalone-capi-test.c 17) 18llvm_update_compile_flags(standalone-capi-test) 19target_link_libraries(standalone-capi-test 20 PRIVATE StandaloneCAPITestLib) 21