V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
proxytoworld
V2EX  ›  问与答

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

  •  
  •   proxytoworld · Dec 6, 2021 · 649 views
    This topic created in 1607 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   ·   886 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:57 · PVG 02:57 · LAX 11:57 · JFK 14:57
    ♥ Do have faith in what you're doing.