How to generate __init__.py in all subdirectories of current directory in cmake?
How to generate __init__.py in all subdirectories of current directory in cmake? Question: I use an out-of-tree builds with CMake. I have a CMake custom command that generates *_pb2.py files from proto-files. Since proto-files may reside in an unknown number of subdirectories (package namespace), like $SRC/package1/package2/file.proto, then the build directory will contain something like $BLD/package1/package2/file_pb2.py. …