proxytoworld
V2EX  ›  问与答

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

  •  
  •   proxytoworld · Dec 6, 2021 · 781 views
    This topic created in 1680 days ago, the information mentioned may be changed or developed.

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

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5553 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1082ms · UTC 09:13 · PVG 17:13 · LAX 02:13 · JFK 05:13
    ♥ Do have faith in what you're doing.