【问题标题】:Using a custom build command for a remote environment in Visual Studio在 Visual Studio 中为远程环境使用自定义构建命令
【发布时间】:2023-03-23 07:20:01
【问题描述】:

我正在使用一个远程 Linux 系统,我希望在其中进行所有编译。 Visual Studio 做得很好,但我想在远程服务器上使用 cmake。当我远程运行cmake . && make 时,我创建的 CMakeList.txt 运行良好,但我希望 Visual Studio 在我要求它在我的本地计算机上构建时运行该命令。我将如何进行设置?

【问题讨论】:

    标签: c++ linux visual-studio remote-debugging


    【解决方案1】:

    我的回答将基于您的问题。如何在 Visual Studio 上设置构建以在 Linux 上运行 make... 首先确保您创建了 Makefile 项目,如下图所示:

    然后您将能够配置构建/重建和清理命令。

    这只是一个起点,但希望它能回答您的问题。祝你好运!

    【讨论】:

      猜你喜欢
      • 2012-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-20
      • 2017-05-01
      • 2013-07-28
      • 2021-01-23
      相关资源
      最近更新 更多