This will allow other CMake projects to import the Halide library (however it's built, e.g. dynamic or static). It also allows a required libraries/compiler flags to be exported to the client if need be. We can also have the HalideGenerator.cmake automatically imported for the client when they do find_package(Halide CONFIG REQUIRED).
A use case for this is app/wavelet which tries to be standalone but doesn't quite succeed due to the static in source build assumption.
I've done this before for the STP project so it should be fairly straight forward to do.
This will allow other CMake projects to import the Halide library (however it's built, e.g. dynamic or static). It also allows a required libraries/compiler flags to be exported to the client if need be. We can also have the
HalideGenerator.cmakeautomatically imported for the client when they dofind_package(Halide CONFIG REQUIRED).A use case for this is
app/waveletwhich tries to be standalone but doesn't quite succeed due to the static in source build assumption.I've done this before for the STP project so it should be fairly straight forward to do.