Hello, I am currently writing a Julia package that is used to ahead-of-time compile some Julia code so it can be used as a C-interface. This uses the new JuliaC.jl package which acts (essentially) as a compiler, taking a Julia project and producing out a shared library. I then want to export this library. However the standard tricks I have seen using add_library(SHARED IMPORTED) do not work for this use case as doing this suggests to CMake that the library was not built by this project. It seems conceptually simple to me that I should be able to just add every property necessary to convince CMake that I did actually build this library in this project, but it seems my mental model or google-fu are faulty as I cannot seem to find a method to do this.
Is this simply impossible?