@@ -4,6 +4,7 @@ Having all [requirements](README.md#requirements) set, here you can find how to
44
55## Table of contents
66
7+ - [ TL;DR] ( #tldr )
78- [ Build] ( #build )
89- [ Execute] ( #execute )
910 - [ macOS] ( #macos )
@@ -12,6 +13,24 @@ Having all [requirements](README.md#requirements) set, here you can find how to
1213- [ Distribution] ( #distribution )
1314- [ Tests] ( #tests )
1415
16+ ## TL;DR
17+
18+ > [ !IMPORTANT]
19+ > Workflow presets are only available in CMake version 3.25 and up.
20+
21+ The quickest way possible to get an actual distributable from zero is using the available CMake workflows. For Linux and
22+ Windows:
23+
24+ ``` shell
25+ cmake --workflow --preset dist
26+ ```
27+
28+ And for macOS with Xcode:
29+
30+ ``` shell
31+ cmake --workflow --preset xcode-dist
32+ ```
33+
1534## Build
1635
1736Usually available build modes are ` Debug ` , ` Release ` , and ` RelWithDebInfo ` .
@@ -30,12 +49,14 @@ cmake -GNinja -DCMAKE_BUILD_TYPE=Release -B build/release
3049cmake --build build/release
3150```
3251
33- On macOS Xcode should be used as generator via ` -GXCode ` . For example creating a release build with XCode.
52+ On macOS Xcode should be used as generator via ` -GXcode ` . For example creating a release build with XCode. It is also
53+ necessary to specify the Apple architecture via ` CMAKE_OSX_ARCHITECTURES ` , for example for a universal executable using
54+ the value ` x86_64;arm64" ` .
3455
3556``` shell
36- # Using Xcode
37- cmake -GXcode -DCMAKE_BUILD_TYPE=Release -B build/xcode
38- cmake --build build/xcode
57+ # Using Xcode, create universal executable
58+ cmake -GXcode -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES= " x86_64;arm64 " - B build/xcode
59+ cmake --build build/xcode --config Release
3960```
4061
4162## Execute
0 commit comments