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

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

        如何在cmake中使用autouic将标题和ui文件放在不同的文件夹中

        How to place header and ui file in different folders using autouic in cmake(如何在cmake中使用autouic将标题和ui文件放在不同的文件夹中)

        1. <tfoot id='LWya4'></tfoot>
            <tbody id='LWya4'></tbody>
          1. <legend id='LWya4'><style id='LWya4'><dir id='LWya4'><q id='LWya4'></q></dir></style></legend>

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

                <i id='LWya4'><tr id='LWya4'><dt id='LWya4'><q id='LWya4'><span id='LWya4'><b id='LWya4'><form id='LWya4'><ins id='LWya4'></ins><ul id='LWya4'></ul><sub id='LWya4'></sub></form><legend id='LWya4'></legend><bdo id='LWya4'><pre id='LWya4'><center id='LWya4'></center></pre></bdo></b><th id='LWya4'></th></span></q></dt></tr></i><div id='LWya4'><tfoot id='LWya4'></tfoot><dl id='LWya4'><fieldset id='LWya4'></fieldset></dl></div>
                  <bdo id='LWya4'></bdo><ul id='LWya4'></ul>
                  本文介绍了如何在cmake中使用autouic将标题和ui文件放在不同的文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  根据文档,关于自动:

                  如果找到与 ui_.h 匹配的预处理器 #include 指令,并且存在 .ui 文件,则将执行 uic 以生成相应的文件.

                  If a preprocessor #include directive is found which matches ui_.h, and a .ui file exists, then uic will be executed to generate the appropriate file.

                  但是如果 .ui 文件在另一个文件夹中呢?我目前在尝试构建时收到以下错误:

                  But what if the .ui file is in another folder? I currently get the following error when trying to build:

                  AUTOUIC : error : process for ui_module.h failed:
                  File 'C:/app/source/headers/module.ui' is not valid
                  

                  ui 文件实际上位于此处:

                  The ui file is actually located here:

                  C:/app/source/forms/module.ui
                  

                  我尝试将 C:/app/source/forms/ 添加到 include_directories() 宏,但没有成功.有什么想法吗?

                  I've tried to add the C:/app/source/forms/ to the include_directories()-macro without success. Any ideas?

                  推荐答案

                  问题 在此答案中提到的问题现已解决.

                  Issue mentioned in this answer is now resolved.

                  这适用于 CMake v3.9.0-rc6:

                  set(CMAKE_AUTOUIC_SEARCH_PATHS your/folder/here)
                  

                  请参阅 AUTOUIC_SEARCH_PATHS 的文档.

                  这篇关于如何在cmake中使用autouic将标题和ui文件放在不同的文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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?)
                      <tbody id='w3Gi7'></tbody>

                    • <small id='w3Gi7'></small><noframes id='w3Gi7'>

                      <legend id='w3Gi7'><style id='w3Gi7'><dir id='w3Gi7'><q id='w3Gi7'></q></dir></style></legend>
                      <tfoot id='w3Gi7'></tfoot>

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

                          <bdo id='w3Gi7'></bdo><ul id='w3Gi7'></ul>