I think you might be missing the “PublicIncludePaths”. Heres how I got it to work on 4.12 and above.
PublicDependencyModuleNames.AddRange(new string[] { "CryptoPP" });
if ((Target.Platform == UnrealTargetPlatform.Win64) || (Target.Platform == UnrealTargetPlatform.Win32))
{
AddEngineThirdPartyPrivateStaticDependencies(Target, "CryptoPP");
}
PublicIncludePathModuleNames.Add("CryptoPP");
PublicIncludePaths.Add(Path.Combine(ThirdPartyPath, "CryptoPP", "5.6.2/include"));
PublicIncludePaths.Add("CryptoPP/5.6.2/include");
You may need to refresh the VS studio project from the editor after this but you should be able to include files after this.
Also bear in mind that I had to compile cryptoPP myself using visual studio community 2015 and replace the .lib file in the engine /ThirdParty/ folder. Otherwise I would get an error saying the library had been compiled using VS 2013.
After this you probably will be able to use CryptoPP in the editor and development builds, unfortunatly the work is not done yet it won’t ship in the “Shipping” build so you’ll have to do this:
I also had to add a UEBuildConfiguration.bForceEnableExceptions = true; to my Build.cs file in order for it to ship.
Let me know if you encounter any other issues.