JIT directory can be nicely wrapped as a simple OBJECT library. In this case everything seems to propagate properly forward.
Edit: This didn't work as it complicates propagating compile options. Bottom rule of a thumb: adding separate libraries inside a mono-repo needs a subdirectory to be as much self-contained as possible. Subdirectories like this are very tied to the global PHP and Zend headers and even compile properties of the extension itself.
Instead of adding custom targets source file can be indicator to run the custom command.
Some redundant compile properties removed, and some adjusted.
CMakeFiles can also serve to store temporary minilua generator to not pollute the binary directory and using Gitignore for that.
JIT directory can be nicely wrapped as a simple OBJECT library. In this case everything seems to propagate properly forward.Edit: This didn't work as it complicates propagating compile options. Bottom rule of a thumb: adding separate libraries inside a mono-repo needs a subdirectory to be as much self-contained as possible. Subdirectories like this are very tied to the global PHP and Zend headers and even compile properties of the extension itself.