Open Jarod42 opened 1 year ago
Currently, moc is auto-detected from headers (with parsing) but files to moc might also be cpp files.
So 2 possible improvements (with extra api):
mocfiles { files }
filter "files:**.h" to_moc (True)
automoc
After reflection, I doubt that premake can handle mocing source files, as there would be 2 rules for one unique file :-/
Currently, moc is auto-detected from headers (with parsing) but files to moc might also be cpp files.
So 2 possible improvements (with extra api):
mocfiles { files }
orfilter "files:**.h" to_moc (True)
automoc
to disable/enable parsing (maybe automoc_header/automoc_source)