find_package(charonload)¶
This module provides some useful functions to propagate the settings from by charonload to the user’s C++ code. The path to this module becomes automatically propagated if it is enabled. A typical example on how to use the module is shown in the following:
find_package(charonload)
if(charonload_FOUND)
charonload_add_torch_library(${TORCH_EXTENSION_NAME} MODULE)
# Add source files containing Python bindings, etc.
target_sources(${TORCH_EXTENSION_NAME} PRIVATE ...)
# Add further properties to the target, e.g. link against other libraries, etc.
# ...
endif()