# 测试程序
## 1、附加包含目录
```
D:\SUB\C\libwebrtc\src\third_party\abseil-cpp
D:\SUB\C\libwebrtc\src
D:\SUB\C\libmediasoupclient\deps\libsdptransform\include
D:\SUB\C\libmediasoupclient\include
```
## 2、附加依赖项
```
D:\SUB\C\libmediasoupclient\build\Debug\mediasoupclient.lib
D:\SUB\C\libwebrtc\src\out\Default\obj\webrtc.lib
```
## 3、代码生成 -> 运行库:MT
## 4、生成事件 -> 生成后时间 -> 命令行:
```
editbin /SUBSYSTEM:CONSOLE $(OutDir)\$(ProjectName).exe
```
## 5、预处理器定义
```
NOMINMAX
WIN32
_WINDOWS
NDEBUG
WEBRTC_WIN
```
## 6、创建主程序`Main.cpp`
```
#include <iostream>
#include <mediasoupclient.hpp>
int main(int argc, char* argv[])
{
std::string version = mediasoupclient::Version();
std::cout << "Version: " << version << std::endl;
return EXIT_SUCCESS;
}
```
# 7、编译
```
cmake . -Bbuild -DLIBWEBRTC_INCLUDE_PATH:PATH=D:\SUB\C\libwebrtc\src -DLIBWEBRTC_BINARY_PATH:PATH=D:\SUB\C\libwebrtc\src\out\Default\obj -DOPENSSL_INCLUDE_DIR:PATH=D:\SUB\C\openssl -DCMAKE_USE_OPENSSL=ON
```