oyama / pico-vfs

Thin virtual file system for Raspberry Pi Pico
Other
9 stars 2 forks source link

Exclude auxiliary build targets #19

Closed oyama closed 3 months ago

oyama commented 4 months ago

Build targets added as samples and tests are propagated to the library user's project. This is not a desirable property for libraries. Either move to another repository or decide on a top-level project and change CMakeLists.txt to dynamically add targets.

oyama commented 3 months ago

https://github.com/raspberrypi/pico-sdk/blob/6a7db34ff63345a7badec79ebea3aaef1712f374/pico_sdk_init.cmake#L11

Alternatively, I can add test and examples directories only when the project is a top-level project, as in picosdk.

https://github.com/oyama/pico-vfs/blob/main/CMakeLists.txt#L105-L106