Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create Xcode project from already existing git cmake project?

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.

like image 816
Richard Avatar asked Jan 24 '17 13:01

Richard


1 Answers

Cmake has a generator for XCode. Try:

cmake -G Xcode <dir of CMakeLists.txt>
like image 149
Waldson Patricio Avatar answered Nov 04 '22 03:11

Waldson Patricio