How to add an extra plist property using CMake?

北慕城南 提交于 2019-12-05 05:28:50
metasim

Have you looked into copying the relevant *.plist.in file in /opt/local/share/cmake-2.8/Modules (such as MacOSXBundleInfo.plist.in), editing it to put <key>UIStatusBarHidden</key><true/> (or @VAR_TO_REPLACE_BY_CMAKE@), and adding the directory of the edited version in the CMAKE_MODULE_PATH?

If you have CMake installed as an app bundle, then the location of that file is /Applications/CMake.app/Contents/share/cmake-N.N/Modules

You can add your values using @ and pass @ONLY to configure_file.

Unfortunately there is no simple way to add custom line to generated file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!