Customising MacOS Bundle's Info.plist file with CMake
问题 I'm using CMake generate build files for a cross platform game and want to specify custom NSMainNibFile and NSPrincipalClass values in certain bundle's Info.plist file Here's the relevant portion of my Info.plist.in template: <key>NSMainNibFile</key> <string>${MAIN_NIBFILE}</string> <key>NSPrincipalClass</key> <string>${PRINCIPAL_CLASS}</string> What I'm doing in my CMakeLists.txt is: set_target_properties(GLWindow PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "OpenGL Test" MAIN_NIBFILE "MainMenu"