久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='Cd9oj'></bdo><ul id='Cd9oj'></ul>

    <small id='Cd9oj'></small><noframes id='Cd9oj'>

    1. <legend id='Cd9oj'><style id='Cd9oj'><dir id='Cd9oj'><q id='Cd9oj'></q></dir></style></legend>

      <i id='Cd9oj'><tr id='Cd9oj'><dt id='Cd9oj'><q id='Cd9oj'><span id='Cd9oj'><b id='Cd9oj'><form id='Cd9oj'><ins id='Cd9oj'></ins><ul id='Cd9oj'></ul><sub id='Cd9oj'></sub></form><legend id='Cd9oj'></legend><bdo id='Cd9oj'><pre id='Cd9oj'><center id='Cd9oj'></center></pre></bdo></b><th id='Cd9oj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Cd9oj'><tfoot id='Cd9oj'></tfoot><dl id='Cd9oj'><fieldset id='Cd9oj'></fieldset></dl></div>
      1. <tfoot id='Cd9oj'></tfoot>

        在使用 cmake 構建的項目中添加頭文件和 .cpp 文件

        Adding header and .cpp files in a project built with cmake(在使用 cmake 構建的項目中添加頭文件和 .cpp 文件)
          <legend id='fuABn'><style id='fuABn'><dir id='fuABn'><q id='fuABn'></q></dir></style></legend>

            <tbody id='fuABn'></tbody>

              <tfoot id='fuABn'></tfoot>

              <small id='fuABn'></small><noframes id='fuABn'>

                  <bdo id='fuABn'></bdo><ul id='fuABn'></ul>
                • <i id='fuABn'><tr id='fuABn'><dt id='fuABn'><q id='fuABn'><span id='fuABn'><b id='fuABn'><form id='fuABn'><ins id='fuABn'></ins><ul id='fuABn'></ul><sub id='fuABn'></sub></form><legend id='fuABn'></legend><bdo id='fuABn'><pre id='fuABn'><center id='fuABn'></center></pre></bdo></b><th id='fuABn'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='fuABn'><tfoot id='fuABn'></tfoot><dl id='fuABn'><fieldset id='fuABn'></fieldset></dl></div>

                  本文介紹了在使用 cmake 構建的項目中添加頭文件和 .cpp 文件的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我已經使用 cmake 和一些庫構建了一個項目.但是我想在我要編寫代碼的項目中添加一些頭文件和 .cpp 文件.最簡單的方法是什么?我可以只創建一個 .cpp 文件嗎?cpp 和頭文件,然后在 Visual Studio 中再次構建項目?或者由于項目是使用 cmake 構建的,我不能?

                  I have built a project using cmake and some libraries.I want however to add some header and .cpp files in the project which I am going to code.What is the easiest way to do it?Can I just create a .cpp and header files and then build again project in Visual Studio? Or due to the fact that project was built using cmake I can't?

                  推薦答案

                  您可以將所有頭文件/源文件放在同一個文件夾中并使用類似

                  You can put all header/source files in the same folder and use something like

                  file(GLOB SOURCES
                      header-folder/*.h
                      source-folder/*.cpp
                  )
                  
                  add_executable(yourProj ${SOURCES})
                  

                  這樣,您可以通過以下兩種方法之一將新添加的 header/source 添加到 VS 中:

                  In this way, you can do either of the following two methods to add new added header/source into VS:

                  1. 需要再次在 CMake 中生成.
                  2. 假編輯CMakeLists.txt 一點點,例如只需添加一個空格.然后在 VS 中構建您的解決方案,它會自動添加新的頭文件/源文件.
                  1. need to generate in CMake again.
                  2. fake to edit the CMakeLists.txt a little bit, e.g. simply add a space. And then build your solution in VS, it will automatically add new header/source files.

                  這篇關于在使用 cmake 構建的項目中添加頭文件和 .cpp 文件的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Why do two functions have the same address?(為什么兩個函數的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復制構造的?)
                  mixing templates with polymorphism(混合模板與多態性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時候應該使用關鍵字“typename?使用模板時)
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標準庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數模板,而 clang 不能)

                      <i id='rRU5t'><tr id='rRU5t'><dt id='rRU5t'><q id='rRU5t'><span id='rRU5t'><b id='rRU5t'><form id='rRU5t'><ins id='rRU5t'></ins><ul id='rRU5t'></ul><sub id='rRU5t'></sub></form><legend id='rRU5t'></legend><bdo id='rRU5t'><pre id='rRU5t'><center id='rRU5t'></center></pre></bdo></b><th id='rRU5t'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rRU5t'><tfoot id='rRU5t'></tfoot><dl id='rRU5t'><fieldset id='rRU5t'></fieldset></dl></div>

                      1. <tfoot id='rRU5t'></tfoot>
                        <legend id='rRU5t'><style id='rRU5t'><dir id='rRU5t'><q id='rRU5t'></q></dir></style></legend>
                            <tbody id='rRU5t'></tbody>
                        1. <small id='rRU5t'></small><noframes id='rRU5t'>

                            <bdo id='rRU5t'></bdo><ul id='rRU5t'></ul>
                            主站蜘蛛池模板: 中文字幕免费在线 | 国产一区不卡 | 国产日韩欧美一区二区在线播放 | 欧美日产国产成人免费图片 | 欧美精品综合 | 国产传媒 | 午夜精品一区二区三区免费视频 | 成人精品国产 | 白浆在线 | 国产日韩精品在线 | 欧美精品一区在线观看 | 草草视频在线观看 | 久久久久国产精品免费免费搜索 | 欧美一区二区三区高清视频 | 欧美成人一区二区三区 | 久久综合一区二区 | 一道本不卡视频 | 国产精品视频网 | 男女在线网站 | 成人久久18免费网站 | 国产一级特黄视频 | 久久激情五月丁香伊人 | 欧美性精品| 精品国产精品国产偷麻豆 | av中文在线观看 | 国产日韩精品一区二区 | 97国产一区二区 | 色婷婷综合在线观看 | 最新超碰| 国产精品一区二区久久 | 亚洲色图综合网 | 围产精品久久久久久久 | 99色在线 | 视频在线亚洲 | 欧美精品乱码久久久久久按摩 | 日本免费一区二区三区四区 | 日韩不卡在线 | 精品99久久| 国产成人精品在线 | 国产综合视频 | 亚洲国产欧美在线人成 |