Преглед на файлове

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

Зареждане…
Отказ
Запис