cuda-kat icon indicating copy to clipboard operation
cuda-kat copied to clipboard

Place export set in build directory

Open codecircuit opened this issue 3 years ago • 1 comments

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.

codecircuit avatar Nov 17 '20 16:11 codecircuit

This makes me wonder... if we generate the file in ${CMAKE_CURRENT_BINARY_DIR} - why do we even need to copy it anywhere?

eyalroz avatar Nov 18 '20 14:11 eyalroz