OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
678 stars 278 forks source link

lib: add include directory to open_amp-static target #545

Closed zaporozhets closed 6 months ago

zaporozhets commented 6 months ago

Hi,

The following PR adds include directory in the open_amp-static target, enabling building and linking static library using CMake subdirectory. This allows to have open_amp library as git submodule and build it with the parent project as cmake dependency.

For example:

add_subdirectory(open-amp)

target_link_libraries(main_app
    PUBLIC
    open_amp-static
)

Let me know if you have any suggestions on the target name or better ideas on implementation.