@lefticus The way you have added configured_files is not scalable. It prevents the project from being packaged. The public include directories should only use relative paths. Using CMAKE_BINARY_DIR doesn't work.
I was planning to add a function target_interface_include_directories, which automatically handles this. I think I should do it, as this seems like a very common issue.
@lefticus The way you have added
configured_files
is not scalable. It prevents the project from being packaged. The public include directories should only use relative paths. UsingCMAKE_BINARY_DIR
doesn't work.See the readme docs I have added, which includes examples for different targets: https://github.com/cpp-best-practices/project_options#usage
I was planning to add a function
target_interface_include_directories
, which automatically handles this. I think I should do it, as this seems like a very common issue.