UNITY_BUILD_CODE_AFTER_INCLUDE.rst 478 Bytes
Newer Older
1
2
3
4
UNITY_BUILD_CODE_AFTER_INCLUDE
------------------------------

Code snippet which is included verbatim by the :prop_tgt:`UNITY_BUILD`
5
6
feature just after every ``#include`` statement in the generated unity
source files.  For example:
7

8
9
10
11
12
13
14
15
16
17
18
19
.. code-block:: cmake

  set(after [[
  #if defined(NOMINMAX)
  #undef NOMINMAX
  #endif
  ]])
  set_target_properties(myTarget PROPERTIES
    UNITY_BUILD_CODE_AFTER_INCLUDE "${after}"
  )

See also :prop_tgt:`UNITY_BUILD_CODE_BEFORE_INCLUDE`.