<bdo id='VYuxQ'></bdo><ul id='VYuxQ'></ul>
    <legend id='VYuxQ'><style id='VYuxQ'><dir id='VYuxQ'><q id='VYuxQ'></q></dir></style></legend><tfoot id='VYuxQ'></tfoot>
  • <i id='VYuxQ'><tr id='VYuxQ'><dt id='VYuxQ'><q id='VYuxQ'><span id='VYuxQ'><b id='VYuxQ'><form id='VYuxQ'><ins id='VYuxQ'></ins><ul id='VYuxQ'></ul><sub id='VYuxQ'></sub></form><legend id='VYuxQ'></legend><bdo id='VYuxQ'><pre id='VYuxQ'><center id='VYuxQ'></center></pre></bdo></b><th id='VYuxQ'></th></span></q></dt></tr></i><div id='VYuxQ'><tfoot id='VYuxQ'></tfoot><dl id='VYuxQ'><fieldset id='VYuxQ'></fieldset></dl></div>

      1. <small id='VYuxQ'></small><noframes id='VYuxQ'>

        C++ CMake(添加非构建文件)

        C++ CMake (add non-built files)(C++ CMake(添加非构建文件))
      2. <tfoot id='lH7j1'></tfoot>
            <tbody id='lH7j1'></tbody>
          <legend id='lH7j1'><style id='lH7j1'><dir id='lH7j1'><q id='lH7j1'></q></dir></style></legend>

        1. <small id='lH7j1'></small><noframes id='lH7j1'>

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

                <i id='lH7j1'><tr id='lH7j1'><dt id='lH7j1'><q id='lH7j1'><span id='lH7j1'><b id='lH7j1'><form id='lH7j1'><ins id='lH7j1'></ins><ul id='lH7j1'></ul><sub id='lH7j1'></sub></form><legend id='lH7j1'></legend><bdo id='lH7j1'><pre id='lH7j1'><center id='lH7j1'></center></pre></bdo></b><th id='lH7j1'></th></span></q></dt></tr></i><div id='lH7j1'><tfoot id='lH7j1'></tfoot><dl id='lH7j1'><fieldset id='lH7j1'></fieldset></dl></div>
                  本文介绍了C++ CMake(添加非构建文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 cmake 来配置我的项目.我使用读取 CMakeLists.txt 的 qtcreator 可视化项目的文件.我有一些文本文件(非代码:配置文件、日志、..),我想将它们添加到我的 cmake 项目中,而无需(当然)编译/链接它们.是否可以 ?主要目标是使用 qtcreator 在我的项目树中自动打开它们并编辑它们......感谢您的帮助.

                  I am using cmake to configure my project. I visualize project's files using qtcreator which read the CMakeLists.txt. I have a few text files (non-code: config files, log, ..) and I would like to add them to my cmake project without (of course) compiling/linking them. Is it possible ? The main goal it to open them automatically in the tree of my project with qtcreator and edit them ... Thanks for help.

                  推荐答案

                  您应该能够在 add_executableadd_library 调用中将它们添加到您的源列表中是合适的,它们会出现在 IDE 中.

                  You should be able to just add them to your list of sources in whichever add_executable or add_library call is appropriate and they will appear in the IDE.

                  我相信 CMake 使用文件的扩展名来确定它们是否是实际的源文件,因此如果您的扩展名为.txt"或.log",它们将不会被编译.

                  I believe CMake uses the files' extensions to determine if they are actual source files, so if yours have extensions like ".txt" or ".log" they won't be compiled.

                  这篇关于C++ CMake(添加非构建文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?(静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么?)
                  How do I load a C DLL from the SXS in Python?(如何从 Python 中的 SXS 加载 C DLL?)
                  Can Cython code be compiled to a dll so C++ application can call it?(Cython 代码可以编译成 dll 以便 C++ 应用程序可以调用它吗?)
                  Delay Loading DLLs(延迟加载 DLL)
                  Throwing C++ exceptions across DLL boundaries(跨 DLL 边界抛出 C++ 异常)
                  Loading a dll from a dll?(从 dll 加载 dll?)

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

                          <legend id='HtmBw'><style id='HtmBw'><dir id='HtmBw'><q id='HtmBw'></q></dir></style></legend>
                          • <bdo id='HtmBw'></bdo><ul id='HtmBw'></ul>

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