Fork me on GitHub
Kayte Studio

cmake with XCode

Hello readers,

Today, we are going to learn how to make a cmake file from XCode. We done this on a m2 motherboard.

For us, its’ already installed. For all of you it will install.

Now:

mulle-xcode-to-cmake -b export shadow.xcodeproj > CMakeLists.txt

It’s now a boilerplate for your needs, you must now add source code to the build.

mkdir build && cd build
cmake ../
make

Every time you do changes, don’t forget to update CMakeLists.txt for your build, everytime you change do this

cd .. 
rm -rf build
mkdir build && cd build
cmake ../
make 

Originally published on codermag.gleentech.com.