diff options
author | Phil Howard <phil@gadgetoid.com> | 2021-02-23 23:06:04 +0000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-03-31 00:27:46 +1100 |
commit | cc497d4c6a7bbf491fbc57b9447632bddff8d566 (patch) | |
tree | f6f6a57be56902ed798fc1128365b816dc49358e /examples/usercmodule/micropython.cmake | |
parent | 0cf12dd59c9ddddbd602d4267410033cb5a9d265 (diff) |
examples/usercmodule: Add micropython.cmake to the C and CPP examples.
examples/usercmodule/micropython.cmake:
Root micropython.cmake file is responsible for including modules.
examples/usercmodule/cexample/micropython.cmake:
examples/usercmodule/cppexample/micropython.cmake:
Module micropython.cmake files define the target and link it to usermod.
Signed-off-by: Phil Howard <phil@pimoroni.com>
Diffstat (limited to 'examples/usercmodule/micropython.cmake')
-rw-r--r-- | examples/usercmodule/micropython.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/usercmodule/micropython.cmake b/examples/usercmodule/micropython.cmake new file mode 100644 index 000000000..ad88d7780 --- /dev/null +++ b/examples/usercmodule/micropython.cmake @@ -0,0 +1,11 @@ +# This top-level micropython.cmake is responsible for listing +# the individual modules we want to include. +# Paths are absolute, and ${CMAKE_CURRENT_LIST_DIR} can be +# used to prefix subdirectories. + +# Add the C example. +include(${CMAKE_CURRENT_LIST_DIR}/cexample/micropython.cmake) + +# Add the CPP example. +include(${CMAKE_CURRENT_LIST_DIR}/cppexample/micropython.cmake) + |