How to install an interface library with generated source in build folder

To do this, you should use CMake 3.23’s FILE_SET feature. If you need older versions, just make it PRIVATE and make a manual install(FILES) call for the headers.

1 Like