I've tried searching for a solution to this issue but can't seem to find anything.
I need to add the 'Copy Bundle Resources' build phase using CMake. It can be added through Xcode itself as shown below:
But I need to do this via CMake.
Use MACOSX_PACKAGE_LOCATION. Here is an example:
file(GLOB XIB_FILES *.xib)
set_source_files_properties(${XIB_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
And don't forget to add ${XIB_FILES} to the list of your add_executable as in:
add_executable(MyApp MACOSX_BUNDLE ${XIB_FILES} ...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With