Advertisement
Guest User

My UE4 Module

a guest
Jan 30th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.09 KB | None | 0 0
  1. using UnrealBuildTool;
  2.  
  3. public class Slam : ModuleRules
  4. {
  5.     public Slam(TargetInfo Target)
  6.     {
  7.         /** Mark the current version of the Slam SDK */
  8.         string SlamVersion = "_04";
  9.         Type = ModuleType.External;
  10.  
  11.         string SlamThirdPartyDirectory = UEBuildConfiguration.UEThirdPartySourceDirectory + "BreezySlam/Slam/Slam" + SlamVersion;
  12.  
  13.         if ((Target.Platform == UnrealTargetPlatform.Win64) ||
  14.             (Target.Platform == UnrealTargetPlatform.Win32))
  15.         {
  16.  
  17.            PublicIncludePaths.Add(SlamThirdPartyDirectory + "/Include");
  18.  
  19.             string LibraryPath = SlamThirdPartyDirectory + "/Lib/";
  20.             string LibraryName = "rplidar_driver";
  21.             if (Target.Platform == UnrealTargetPlatform.Win64)
  22.             {
  23.                 LibraryPath += "x64/";
  24.                 LibraryName += "64";
  25.             }
  26.             else if (Target.Platform == UnrealTargetPlatform.Win32)
  27.             {
  28.                 LibraryPath += "Win32/";
  29.             }
  30.  
  31.             LibraryPath += "VS" + WindowsPlatform.GetVisualStudioCompilerVersionName() + "/";
  32.             PublicLibraryPaths.Add(LibraryPath);
  33.             PublicAdditionalLibraries.Add(LibraryName + ".lib");
  34.         }
  35.     }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement