瀏覽代碼

Update README

Specify build command.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
518f5a9afa
共有 1 個檔案被更改,包括 15 行新增3 行删除
  1. +15
    -3
      README.md

+ 15
- 3
README.md 查看文件

@@ -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"
```

Loading…
取消
儲存