Skip to content

(RFC) Have CMake generate vector.h files for test vectors #1723

@josibake

Description

@josibake

Opening this as a follow-up to #1698 (comment)


Currently, test vector headers are generated from python files automatically as part of the make build system. It's particularly nice when developing, as you can just modify the python script and the vector.h file gets regenerated automatically.

I was curious how hard this would be in CMake, so tried to hack something together here: josibake@953953d

This works-ish, in that I was able to generate the test vector files in the build directory and verified that changing the python scripts automatically regenerates the files. The main issue is CMake generates the header files out of tree, whereas the makefile generates them in tree. I don't see a clear way to support both? The natural thing in mind would be to have these files be stubs and have generated header files in the build directory (the way that CMake is doing it).

I do think it would be nice to have the build systems consistent, but curious if others thing this is wanted/needed before I spend more time refining it. As mentioned in #1698 (comment), another perhaps even simpler approach would be to decouple the test vector generation from the build system entirely.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions