Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Place export set in build directory #83

Open
codecircuit opened this issue Nov 17, 2020 · 1 comment
Open

Place export set in build directory #83

codecircuit opened this issue Nov 17, 2020 · 1 comment

Comments

@codecircuit
Copy link

codecircuit commented Nov 17, 2020

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.

@eyalroz
Copy link
Owner

eyalroz commented Nov 18, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants