Skip to content

cmake fetchcontent support #155

@Neurofibromin

Description

@Neurofibromin

Hi,
Great project! I was wondering if cmake FetchContent integration is planned? I think it would make it easier to include this library in other projects. Currently it sort of works, but the header include path is not picked up by default.

include(FetchContent)
FetchContent_Declare(
        avcpp
        GIT_REPOSITORY https://github.com/h4tr3d/avcpp.git
        GIT_TAG        v2.7.1
)
FetchContent_MakeAvailable(avcpp)
message(STATUS "headers: ${avcpp_SOURCE_DIR}/src")

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions