Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnrealBuildTool;
- public class Slam : ModuleRules
- {
- public Slam(TargetInfo Target)
- {
- /** Mark the current version of the Slam SDK */
- string SlamVersion = "_04";
- Type = ModuleType.External;
- string SlamThirdPartyDirectory = UEBuildConfiguration.UEThirdPartySourceDirectory + "BreezySlam/Slam/Slam" + SlamVersion;
- if ((Target.Platform == UnrealTargetPlatform.Win64) ||
- (Target.Platform == UnrealTargetPlatform.Win32))
- {
- PublicIncludePaths.Add(SlamThirdPartyDirectory + "/Include");
- string LibraryPath = SlamThirdPartyDirectory + "/Lib/";
- string LibraryName = "rplidar_driver";
- if (Target.Platform == UnrealTargetPlatform.Win64)
- {
- LibraryPath += "x64/";
- LibraryName += "64";
- }
- else if (Target.Platform == UnrealTargetPlatform.Win32)
- {
- LibraryPath += "Win32/";
- }
- LibraryPath += "VS" + WindowsPlatform.GetVisualStudioCompilerVersionName() + "/";
- PublicLibraryPaths.Add(LibraryPath);
- PublicAdditionalLibraries.Add(LibraryName + ".lib");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement