xmos / lib_src

Sample rate conversion library
Other
16 stars 20 forks source link

copied CMakeLists.txt from sln_voice and tidied #63

Closed xhuw closed 1 year ago

xhuw commented 1 year ago

This PR implements the same level of cmake support that is currently being manually written in each project that is using it.

Therefore it does not include the below however previous build is still present so this PR does not remove these things:

Merging this PR will allow downstream projects to use this project without code duplication. I have tested that this works with my project.

closes #62

xhuw commented 1 year ago

@ed-xmos

Looks good and trust your ninja cmake skills so approving. But for my understanding, can you explain the need for fwk_core and framework_core_legacy_compat?

lib_src uses debug_printf I think.

I added a download step if PROJECT_IS_TOP_LEVEL so I could check the library compiles. In our project it will find the library from where it is defined in the git submodule.