![]() |
TCM 1.1.0
A CMake module to reduce boilerplate
|
Since CMake 3.19, ISPC is straightforward to use :
path
,.ispc
files can be added as regular sources files to a target, e.g. for tests/ispc/
:Following properties are overridable:
ISPC_HEADER_DIRECTORY
per target, or CMAKE_ISPC_HEADER_DIRECTORY
globally (default CMAKE_CURRENT_BINARY
).ISPC_HEADER_SUFFIX
per target, or CMAKE_ISPC_HEADER_SUFFIX
globally (default _ispc.h
).ISPC_INSTRUCTION_SETS
per target, or CMAKE_ISPC_INSTRUCTION_SETS
globally (default should be the most capable one if we follow ispc's documentation).There are nothing else to do for executable targets. However, by default, a library with .ispc
files doesn't include ISPC_HEADER_DIRECTORY
, so the following is needed:
If you want to change a property, use
TCM provide a single convenience function to set these for a target through function's parameters.