|
|
@@ -31,7 +31,7 @@ The following are required for building on all platforms: |
|
|
|
|
|
|
|
5. Generate the CMake cache. |
|
|
|
|
|
|
|
```shell |
|
|
|
```batch |
|
|
|
cmake^ |
|
|
|
-DCMAKE_SIZEOF_VOID_P=8^ |
|
|
|
"-DCMAKE_MT=%CMAKE_MT%"^ |
|
|
@@ -48,6 +48,12 @@ The following are required for building on all platforms: |
|
|
|
|
|
|
|
6. Build the specific executables you want to build, which are defined in `CMakeLists.txt`. |
|
|
|
|
|
|
|
```batch |
|
|
|
cmake^ |
|
|
|
--build "./build/%BUILD_TYPE%"^ |
|
|
|
-t "%EXECUTABLE%" |
|
|
|
``` |
|
|
|
|
|
|
|
### macOS/*NIX |
|
|
|
|
|
|
|
1. Ensure additional tools are present in the system: |
|
|
@@ -64,15 +70,21 @@ The following are required for building on all platforms: |
|
|
|
```shell |
|
|
|
cmake \ |
|
|
|
-DCMAKE_SIZEOF_VOID_P=8 \ |
|
|
|
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ |
|
|
|
"-DCMAKE_BUILD_TYPE=$BUILD_TYPE" \ |
|
|
|
-DCMAKE_MAKE_PROGRAM=ninja \ |
|
|
|
-DCMAKE_C_COMPILER=cc \ |
|
|
|
-DCMAKE_C_FLAGS=-m64 \ |
|
|
|
-G Ninja \ |
|
|
|
-S . \ |
|
|
|
-B ./build/$BUILD_TYPE |
|
|
|
-B "./build/$BUILD_TYPE" |
|
|
|
``` |
|
|
|
|
|
|
|
> **Important:** Create the directories under `/build` per each `BUILD_TYPE` you are generating. |
|
|
|
|
|
|
|
5. Build the specific executables you want to build, which are defined in `CMakeLists.txt`. |
|
|
|
|
|
|
|
```shell |
|
|
|
cmake \ |
|
|
|
--build "./build/$BUILD_TYPE" \ |
|
|
|
-t "$EXECUTABLE" |
|
|
|
``` |