property MACOSX_PACKAGE_LOCATION does not copy frameworks and resources recursively with some generators
I have 3rd parties private frameworks and resource folders to be copied in the application bundle, I set the MACOSX_PACKAGE_LOCATION property on them:
set_source_files_properties( private.framework PROPERTIES MACOSX_PACKAGE_LOCATION Frameworks ) set_source_files_properties( folder PROPERTIES MACOSX_PACKAGE_LOCATION Resources )
but they are only copied correctly when using the Xcode generator, make or ninja failed to copy the whole folder.
See attached project, run ./build.sh, compare the 2 .app generated.