summaryrefslogtreecommitdiff
path: root/Help/prop_tgt/CUDA_OPTIX_COMPILATION.rst
blob: c2a06a88b7158c428e8051a9f70bd9843deaa336 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CUDA_OPTIX_COMPILATION
----------------------

.. versionadded:: 3.27

Compile CUDA sources to ``.optixir`` files instead of ``.obj`` files
within :ref:`Object Libraries`.

For example:

.. code-block:: cmake

  add_library(myoptix OBJECT a.cu b.cu)
  set_property(TARGET myoptix PROPERTY CUDA_OPTIX_COMPILATION ON)