Skip to content

Teach Halide CMake build to export Halide library target #870

@delcypher

Description

@delcypher

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues related to building Halide and with CIenhancementNew user-visible features or improvements to existing features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions