久久久久久久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>
                            主站蜘蛛池模板: 国产91av在线 | 一区二区水蜜桃 | www国产精品 | 成人91看片 | 日韩亚洲欧美在线 | 欧美日韩免费看 | 日韩精品一区在线观看 | 一区二区国产精品 | 国产精品自拍小视频 | 成人国产网站 | 亚洲欧美天堂 | a免费视频 | 日本www视频 | 黄色激情视频在线观看 | 亚洲欧美视频在线观看 | 中文字幕在线免费播放 | 国产伦理一区二区 | 欧美日韩在线视频观看 | a一级黄色片 | 欧美成人精品一区二区三区 | 婷婷久久综合 | www.精品国产| 91二区 | 天天操免费视频 | 国产精品第二页 | 天天看天天爽 | 成人免费视频视频 | 一级黄色大片 | 91久色 | 欧美精品二区三区四区免费看视频 | 国产欧美日韩综合 | 中国免费av | 日韩精品视频免费 | 免费成人蒂法网站 | 黄色片网站免费 | 日韩精品综合 | av天天操| 国产精品一区三区 | 欧美日韩毛片 | 一级黄片毛片 | 亚洲一区影院 |