How do I "make install" via xcode?

I have an xcode project that builds a library from C/C++ sources for OSX. Is there a way to get xcode to install the library and its header files into /usr/local/lib?

I have the following settings under Target > Build Settings:

  • Deployment
  • Deployment Location = Yes
  • Deployment Postprocessing = Yes
  • Installation Build Products Location = /tmp/projname.dst
  • Installation Directory = /usr/local/lib
  • Skip Install = No
  • When I do Product > Build, it puts the resulting .a and adds the public headers into an include/ subfolder in the /tmp/projname.dst/ folder. But I come from the land of Makefiles and I'd like to have the equivalent of "make install" here (I expect it to ask me for permissions when it tries to put things into /usr/local/include/ and /usr/local/lib/)


    它看起来像“xcodebuild安装”是你如何做到这一点。

    链接地址: http://www.djcxy.com/p/11802.html

    上一篇: 打开失败:ENOENT(没有这样的文件或目录)错误

    下一篇: 如何通过xcode“进行安装”?