mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Bug 5591814: Support "make install" in single sample folder
This commit is contained in:
@@ -40,8 +40,15 @@ else (WIN32)
|
||||
LINK_FLAGS "-Wl,-rpath,${LIBNVVM_RPATH}")
|
||||
endif (WIN32)
|
||||
|
||||
install(TARGETS simple DESTINATION bin)
|
||||
install(FILES simple-gpu64.ll DESTINATION bin)
|
||||
# Install to CUDA_SAMPLES_INSTALL_DIR if defined (for unified installation),
|
||||
# otherwise install to bin (for standalone libNVVM build)
|
||||
if(DEFINED CUDA_SAMPLES_INSTALL_DIR)
|
||||
install(TARGETS simple DESTINATION ${CUDA_SAMPLES_INSTALL_DIR})
|
||||
install(FILES simple-gpu64.ll DESTINATION ${CUDA_SAMPLES_INSTALL_DIR})
|
||||
else()
|
||||
install(TARGETS simple DESTINATION bin)
|
||||
install(FILES simple-gpu64.ll DESTINATION bin)
|
||||
endif()
|
||||
|
||||
# 'simple' will load simple-gpu64.ll from the current working directory. That
|
||||
# .ll file should be present where tests are executed (the build directory).
|
||||
|
||||
Reference in New Issue
Block a user