Announcement

Collapse
No announcement yet.

[Plugin] Unable to compile plugin cause PublicIncludePaths are simply ignored

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Plugin] Unable to compile plugin cause PublicIncludePaths are simply ignored

    I've got a third party code that I need to include into UE4 project. I decided to create a plugin that holds git submodule. So the structure of plugin is:
    MyGame/Plugins/MyPlugin/Source/:
    Public:
    MyPlugin.h
    Private:
    MyPlugin.cpp
    MySubmodule:
    inc:
    *.hpp
    src:
    *.cpp
    some_useless_folder:
    matlab files
    I Added the following code into MyPlugin.Build.cs
    Code:
     PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
    PublicIncludePaths.AddRange(new string[] { Path.Combine(ModuleDirectory, "Public"), Path.Combine(ModuleDirectory, "MDGeom/inc"), });
    PrivateIncludePaths.AddRange(new string[] { Path.Combine(ModuleDirectory, "Private"), });
    CppStandard = CppStandardVersion.Cpp17;
    But ue4 just ignores any settings and tries to compile matlab files as cpp files. How the hell make such an easy thing working in ue4 project without no need to manually copy needed files to Public/Private folders?
Working...
X