cuda-kat
cuda-kat copied to clipboard
Place export set in build directory
If you put these lines:
# If you want to use the library without installing it, you'll need to
# copy the file we generate here, cuda-kat-config.cmake, into the
# build directory, and set `cuda-kat_DIR` to that build directory
# in your own CMake project.
export(
EXPORT cuda-kat_export
NAMESPACE "cuda-kat::"
FILE "${PROJECT_BINARY_DIR}/cuda-kat-config.cmake"
)
In the CMakeLists.txt
here it is possible to use this project without installing it. This feature is also available for the cuda-api-wrappers.
This makes me wonder... if we generate the file in ${CMAKE_CURRENT_BINARY_DIR}
- why do we even need to copy it anywhere?