Ceedling YAML to CMakeLists

All,

Before I head off on that experimental path, was wondering if anyone on here tried to parse and convert project.yml to Cmake arguments? We use ceedling for unit testing the zephyr application. Figured it would be nice if I could have project.yml as single source of truth for both test and target builds where I provide all source , include directories and defines instead of all the nested CMakeLists.txt. I suppose what am trying to do won't sit nice with spirit of CMake?

Thanks

Parents Reply
  • Hi Tarsten,

    An update. Ended up writing a ruby generator script that is invoked by rake build task . The script takes project configuration parameters from Ceedling (YAML Hashes) and converts to CMakeLists.txt before invoking west. At the moment all sources in subdirectory are listed in CMakeLists.txt in project root unlike how CMakeLists.txt normally likes to live in source subdirectories. That's something I can improve upon in future to be in line with CMake.

    Best Regards

    Sandy

Children
No Data
Related