Closed awvwgk closed 2 years ago
I'm not really a CMake guru. So if you think there's some way to improve the CMake support feel free to send a merge request!
@awvwgk Thank you for the pull request. I can merge it in. Is there anything that should be said about this in the Readme? (again, this cmake stuff is not my strong suit).
The exported CMake target is currently incomplete, i.e. the required include directory is not associated with the target. Also, the user has to work with the library target, rather than getting an imported library with namespacing.
This requires users of to fixup the jsonfortran target, e.g. by creating their own interface library. I'm currently using the following boilerplate:
Would it be possible to export a complete target (
jsonfortran::jsonfortran
) in this projects CMake files? I would be happy to contribute the required changes to the CMake build files.