mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 11:32:44 +08:00
Autogen: Add AUTOUIC_SEARCH_PATHS documentation
This commit is contained in:
committed by
Brad King
parent
6d7c02db34
commit
36fa535d92
@@ -121,6 +121,7 @@ Properties on Targets
|
||||
/prop_tgt/AUTOMOC
|
||||
/prop_tgt/AUTOUIC
|
||||
/prop_tgt/AUTOUIC_OPTIONS
|
||||
/prop_tgt/AUTOUIC_SEARCH_PATHS
|
||||
/prop_tgt/AUTORCC
|
||||
/prop_tgt/AUTORCC_OPTIONS
|
||||
/prop_tgt/BINARY_DIR
|
||||
|
||||
@@ -104,7 +104,9 @@ be run, and to create rules to execute ``uic`` at the appropriate time.
|
||||
|
||||
If a preprocessor ``#include`` directive is found which matches
|
||||
``ui_<basename>.h``, and a ``<basename>.ui`` file exists, then ``uic`` will
|
||||
be executed to generate the appropriate file.
|
||||
be executed to generate the appropriate file. The ``<basename>.ui`` file is
|
||||
searched for first in the vicinity of including file and afterwards in the
|
||||
optional :prop_tgt:`AUTOUIC_SEARCH_PATHS` of the target.
|
||||
|
||||
The generated generated ``ui_*.h`` files are placed in the
|
||||
``<CMAKE_CURRENT_BINARY_DIR>/<TARGETNAME>_autogen/include`` directory which is
|
||||
|
||||
@@ -263,6 +263,7 @@ Variables that Control the Build
|
||||
/variable/CMAKE_AUTORCC_OPTIONS
|
||||
/variable/CMAKE_AUTOUIC
|
||||
/variable/CMAKE_AUTOUIC_OPTIONS
|
||||
/variable/CMAKE_AUTOUIC_SEARCH_PATHS
|
||||
/variable/CMAKE_BUILD_RPATH
|
||||
/variable/CMAKE_BUILD_WITH_INSTALL_NAME_DIR
|
||||
/variable/CMAKE_BUILD_WITH_INSTALL_RPATH
|
||||
|
||||
@@ -10,8 +10,13 @@ Qt4 and Qt5 are supported.
|
||||
|
||||
When this property is ``ON``, CMake will scan the source files at build time
|
||||
and invoke ``uic`` accordingly. If an ``#include`` statement like
|
||||
``#include "ui_foo.h"`` is found in ``foo.cpp``, a ``foo.ui`` file is
|
||||
expected next to ``foo.cpp``, and ``uic`` is run on the ``foo.ui`` file.
|
||||
``#include "ui_foo.h"`` is found in ``source.cpp``, a ``foo.ui`` file is
|
||||
searched for first in the vicinity of ``source.cpp`` and afterwards in the
|
||||
optional :prop_tgt:`AUTOUIC_SEARCH_PATHS` of the target.
|
||||
``uic`` is run on the ``foo.ui`` file to generate ``ui_foo.h`` in the directory
|
||||
``<CMAKE_CURRENT_BINARY_DIR>/<TARGETNAME>_autogen/include``,
|
||||
which is added to the target's :prop_tgt:`INCLUDE_DIRECTORIES` automatically.
|
||||
|
||||
This property is initialized by the value of the :variable:`CMAKE_AUTOUIC`
|
||||
variable if it is set when a target is created.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
AUTOUIC_OPTIONS
|
||||
---------------
|
||||
|
||||
Additional options for uic when using :prop_tgt:`AUTOUIC`
|
||||
Additional options for ``uic`` when using :prop_tgt:`AUTOUIC`
|
||||
|
||||
This property holds additional command line options which will be used when
|
||||
``uic`` is executed during the build via :prop_tgt:`AUTOUIC`, i.e. it is
|
||||
|
||||
12
Help/prop_tgt/AUTOUIC_SEARCH_PATHS.rst
Normal file
12
Help/prop_tgt/AUTOUIC_SEARCH_PATHS.rst
Normal file
@@ -0,0 +1,12 @@
|
||||
AUTOUIC_SEARCH_PATHS
|
||||
--------------------
|
||||
|
||||
Search path list used by :prop_tgt:`AUTOUIC` to find included
|
||||
``.ui`` files.
|
||||
|
||||
This property is initialized by the value of the
|
||||
:variable:`CMAKE_AUTOUIC_SEARCH_PATHS` variable if it is set
|
||||
when a target is created. Otherwise it is empty.
|
||||
|
||||
See the :manual:`cmake-qt(7)` manual for more information on using CMake
|
||||
with Qt.
|
||||
11
Help/variable/CMAKE_AUTOUIC_SEARCH_PATHS.rst
Normal file
11
Help/variable/CMAKE_AUTOUIC_SEARCH_PATHS.rst
Normal file
@@ -0,0 +1,11 @@
|
||||
CMAKE_AUTOUIC_SEARCH_PATHS
|
||||
--------------------------
|
||||
|
||||
Search path list used by :variable:`CMAKE_AUTOUIC` to find included
|
||||
``.ui`` files.
|
||||
|
||||
This variable is used to initialize the :prop_tgt:`AUTOUIC_SEARCH_PATHS`
|
||||
property on all the targets. See that target property for additional
|
||||
information.
|
||||
|
||||
By default it is empty.
|
||||
Reference in New Issue
Block a user