https://github.com/hanxi/skynet-cmake
使用 CMake 编译 skynet,无侵入式支持vs2022中编译skynet
https://github.com/hanxi/skynet-cmake
cmake skynet vs2022 windows
Last synced: about 1 year ago
JSON representation
使用 CMake 编译 skynet,无侵入式支持vs2022中编译skynet
- Host: GitHub
- URL: https://github.com/hanxi/skynet-cmake
- Owner: hanxi
- License: mit
- Created: 2023-08-31T17:32:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-28T01:41:17.000Z (over 1 year ago)
- Last Synced: 2025-03-26T18:57:06.967Z (over 1 year ago)
- Topics: cmake, skynet, vs2022, windows
- Language: C++
- Homepage: https://github.com/hanxi/skynet-cmake
- Size: 32.1 MB
- Stars: 30
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 使用 CMake 编译 skynet
[skynet-cmake](https://github.com/hanxi/skynet-cmake) 是 [skynet](https://github.com/cloudwu/skynet) 的使用 cmake 的多平台的实现。
主要特点是支持在 vs2022 中编译运行,且 skynet 以 submodule 的方式链接,方便升级,确保不改。
## 在 Windows 下
基于 [Visual Studio 2022](https://visualstudio.microsoft.com/zh-hans/downloads/) ,需要安装 CMake 和 Clang 模块。
- [安装CMake](https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-170)
- [安装Clang](https://learn.microsoft.com/en-us/cpp/build/clang-support-cmake?view=msvc-170)
下载工程和更新 submodule
```bash
git checkout https://github.com/hanxi/skynet-cmake.git
cd skynet-cmake
git submodule update --init
```
使用 vs2022 打开此工程目录 skynet-cmake (即CMakeLists.txt 文件所在目录)
## 在 Linux MacOSX 下
没多大必要,直接用 make 可能更方便。
```bash
mkdir build
cd build
Makefile:
cmake ../
Xcode:
cmake -G Xcode ../
```
## 参考
- [cloudfreexiao/skynet/tree/windows](https://github.com/cloudfreexiao/skynet/tree/windows)
- [dpull/skynet-mingw](https://github.com/dpull/skynet-mingw)