How would I include files with no extension in cppHeaders Zip task. The suggested approach to include files not enforced by gradle API works for files with extension but not without extension. So, to include inl and hpp the following code works.
I tried the following but neither of them seem to pull in the files with no extension.
You partly got it right @Shahji. The pattern
**/* is right, unfortunately, due to how the
cppHeaders task is configured, adding include pattern at the root level of the task won’t change the outcome. Instead, you need to add something like this:
I’m surprised your other pattern worked as they should have to work the same way.
That worked. Thanks @Daniel_L
So here is the full solution that worked for me:
Is this the preferred way? This is due to templated headers normally including the implementation, in my case .cc with the header file, this seems like the standard way of doing things with c++.