V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
proxytoworld
V2EX  ›  问与答

cmake 项目中存在多级目录,怎么样设置可以让子目录的 CmakeLists.txt 保存改动时,自动重新编译项目根目录的 CmakeLists.txt

  •  
  •   proxytoworld · 2021 年 12 月 6 日 · 591 次点击
    这是一个创建于 1579 天前的主题,其中的信息可能已经有所发展或是发生改变。

    使用 VSCode 的 Cmaketool ,现在改动子目录的 CmakeLists.txt 后,需要去项目根目录的 CmakeLists.txt 改动并且保存才会自动重新编译文件,有点麻烦。 希望可以在子目录的 CmakeLists.txt 保存改动后自动编译

    注:根目录 CmakeLists 通过 add_subdirectory 指令引入子目录的 CmakeLists

    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1370 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:04 · PVG 01:04 · LAX 10:04 · JFK 13:04
    ♥ Do have faith in what you're doing.