将项目移动到解决方案(子)文件夹中(使用 premake5/VisualStudio2017)

Move project into a solution (sub)folder (using premake5/VisualStudio2017)

我正在使用 Visual Studio 2017 和 premake 5 程序。 为了生成我的项目,我在 premake5.lua 文件中有我的工作区。

因为我的项目引用了旧解决方案中的其他项目,所以我可以只包含那些基本上有自己的 premake5.lua 文件来生成该特定项目,例如 here。如您所见,整个源代码和 premake5.lua 作为 github 子模块包含在我当前的解决方案中,因此我无法更改该 premake5.lua 文件。

解决方案 premake5.lua 文件如下所示:

workspace WorkSpaceName
    ...

-- glfw project
include "git submodule premake5.lua filename"

-- main project
project MainProjectName
    links
    {
        "GLFW",
        ...
    }
    ...

截至目前,在 VisualStudio 中,我得到了一个类似

的文件结构
Solution
    - Main project (with premake5.lua file)
    - glfw project (github submodule, with own premake5.lua)
    - ...          (other projects in solution)

我的问题: 我可以将项目 glfw 移动到主项目 premake5.lua 文件中的解决方案子文件夹中,而不触及 [=36] 中的文件吗=] 子模块?那么我的文件结构将如下所示:

Solution
    - Main project (with premake5.lua file)
    - <FolderName>
        - glfw project (github submodule, with own premake5.lua)
        - ... (other projects in solution/<FolderName>)
    - ...     (other projects in solution)

亲切的问候

经过 2 个小时的搜索,我找到了自己的解决方案:

通过将项目添加到组中,它们会出现在虚拟文件夹中。

group "Dependecies"
    include "git submodule premake5.lua filename"
group "" -- end of "Dependensies"