第三方静态库的使用
1. 工程根目錄下創(chuàng)建文件夾“ThirdParty”,然后在此文件夾下創(chuàng)建“includes”和“l(fā)ibs”文件夾
2. 拷貝靜態(tài)庫的頭文件和庫文件到上面的文件夾下
3. 修改工程的build.cs文件,增加下面代碼
? ? 1)在類中
? ? ? ? ?private string ThirdPartyPath
? ? ? ? ?{
? ? ? ? ? ? ? get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../../ThirdParty/")); }
? ? ? ? ?}
? ? 2)在類的構(gòu)造函數(shù)中
? ? ? ??PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "includes"));
? ? ? ? PublicAdditionalLibraries.Add(Path.Combine(ThirdPartyPath, "libs", "GraphicsPixel.lib"));
總結(jié)
- 上一篇: 凯恩斯理论的缺陷,四点很重要
- 下一篇: 30万、2.0T以下车型购置税减半!一图