mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
build: 迁移构建系统至 CMake 并清理旧的二进制文件
- 删除过时的 Makefile 和 bin/ 目录下的二进制文件 - 新增 CMakeLists.txt 以支持更标准的跨平台构建 - 更新 README.md 中的编译步骤和依赖说明 - 调整 main.c 中的注释和 installer.iss 中的源文件路径 - 构建输出现在位于 build/ 目录,DLL 文件在构建后自动复制
This commit is contained in:
@@ -61,12 +61,14 @@
|
||||
|
||||
* Windows 操作系统
|
||||
* GCC 编译器 (推荐 MinGW-w64)
|
||||
* Make 工具
|
||||
* CMake 工具
|
||||
* IUP 库 (已包含在 `libs` 目录下)
|
||||
* Inno Setup 6 (仅打包需要)
|
||||
|
||||
### 编译步骤
|
||||
|
||||
本项目使用 CMake 构建系统,支持生成更标准的构建文件并集成到各大 IDE。
|
||||
|
||||
1. 克隆仓库:
|
||||
|
||||
```bash
|
||||
@@ -74,14 +76,18 @@
|
||||
cd PathEditor
|
||||
```
|
||||
|
||||
2. 编译项目:
|
||||
2. 使用 CMake 配置和编译:
|
||||
|
||||
```bash
|
||||
mingw32-make
|
||||
# 生成构建系统 (以 MinGW 为例)
|
||||
cmake -B build -G "MinGW Makefiles"
|
||||
|
||||
# 编译项目
|
||||
cmake --build build
|
||||
```
|
||||
|
||||
3. 运行:
|
||||
编译成功后,可执行文件位于 `bin/PathEditor.exe`。
|
||||
编译成功后,可执行文件位于 `build/PathEditor.exe`。
|
||||
|
||||
### 打包 (可选)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user