1
0

finish obj loader

This commit is contained in:
2026-01-09 22:50:24 +08:00
parent 07bd22d2ee
commit 31dc82fc2c
9 changed files with 137 additions and 13 deletions

View File

@@ -10,6 +10,8 @@ We assume that you executing following commands in the root directory of `Basalt
### spdlog
##### Build
```sh
cd external
git clone -b 1.17.0 https://github.com/gabime/spdlog.git
@@ -19,53 +21,65 @@ mkdir out
cd out
mkdir build
mkdir install
cd build
```
In Windows:
```bat
cmake -A x64 ../..
cmake -A x64 -DCMAKE_CXX_STANDARD=23 -DSPDLOG_WCHAR_SUPPORT=ON -DSPDLOG_WCHAR_FILENAMES=ON -DSPDLOG_WCHAR_CONSOLE=ON -DSPDLOG_BUILD_EXAMPLE=OFF ../..
cmake --build . --config Release
cmake --install . --prefix=../install
cmake --install . --config Release --prefix=../install
```
Or in POSIX:
```sh
cmake -DCMAKE_BUILD_TYPE=Release ../..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=23 -DSPDLOG_BUILD_EXAMPLE=OFF ../..
cmake --build .
cmake --install . --prefix=../install
```
##### Usage
Use `-Dspdlog_ROOT=<path to spdlog install directory>` in cmake when you configure this project.
#### tinyobjloader
##### Build
```sh
cd external
git clone -b v2.0.0 https://github.com/tinyobjloader/tinyobjloader.git
git clone -b v1.0.6 https://github.com/tinyobjloader/tinyobjloader.git
cd tinyobjloader
mkdir out
cd out
mkdir build
mkdir install
cd build
```
In Windows:
```bat
cmake -A x64 ../..
cmake -A x64 -DCMAKE_CXX_STANDARD=23 ../..
cmake --build . --config Release
cmake --install . --prefix=../install
cmake --install . --config Release --prefix=../install
```
Or in POSIX:
```sh
cmake -DCMAKE_BUILD_TYPE=Release ../..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=23 ../..
cmake --build .
cmake --install . --prefix=../install
```
##### Usage
Use `-Dtinyobjloader_ROOT=<path to tinyobjloader install directory>` in cmake when you configure this project.
## Warning
This project was not written robustly.