如何从现有的git cmake项目创建Xcode项目? [英] How to create Xcode project from already existing git cmake project?

查看:498
本文介绍了如何从现有的git cmake项目创建Xcode项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是OSx的新手,有人可以帮助从现有代码创建Xcode项目吗?我想尝试Xcode的某些功能,比如'profile'。



我目前在我的cmake项目中使用Clion,它也在git repo中。我只是想从Xcode导入它,但这并不容易。这里有一些关于项目和IDE的信息:


  • 它只是一个用C ++和cmake项目编写的控制台应用程序


  • Xcode版本8.0(8A218a)
  • OS El Capitan 10.11.6


如果您需要更多信息,我可以提供更多信息。感谢您的帮助。

解决方案

Cmake有一个 generator 。尝试:

  cmake -G Xcode< dcm of CMakeLists.txt> 


I am new to OSx, can someone help to create Xcode project from existing code? I want to try some features of Xcode like 'profile'.

I currently use Clion for my cmake project, it is also in git repo. I simply want to import it from Xcode but it's not that easy I guess. Here some info about project and IDE:

  • It is just a console app written in C++ and cmake project
  • It is also on git repo
  • Xcode Version 8.0 (8A218a)
  • OS El Capitan 10.11.6

If you need more info, I can give more. Thanks for help.

解决方案

Cmake has a generator for XCode. Try:

cmake -G Xcode <dir of CMakeLists.txt>

这篇关于如何从现有的git cmake项目创建Xcode项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆