Building and packaging VCMI

cd ~/DEV/cmake
# Start build using cmake
cmake --build . -- -j 4
# Or you can as well use simple
# make -j 4
# When build is completed you can trigger packaging into DMG
cpack
# After file named such as "vcmi-0.99.dmg" will be created

Building and packaging VCMI

cd ~/DEV/xcode
# Start build. Xcode built using multiple processes by default so you don't need to specify it
# Since it's multi-configuration project you need to specify if you want Debug build since Release is default
cmake --build . --config Debug
# You have to specify build configuration for CPack. Otherwise it's will expect Release as default
cpack -C Debug

Building VCMI with Qt Creator

When opening project with Qt Creator installed using online installer you might have a problem with CMake unable to find Qt even if you added it into the $PATH environment variable. In that case try to open it from command line:

open ~/Qt/Qt\ Creator.app

Running VCMI

You can run VCMI from DMG, but it's will also work from your IDE be it Xcode or Qt Creator.