mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Copy all the needed .ll and .dll for 7_libNVVM
This commit is contained in:
@@ -49,4 +49,17 @@ install(FILES uvmlite64.ll DESTINATION bin)
|
||||
|
||||
# 'uvmlite' will load uvmlite64.ll from the current working directory. That
|
||||
# .ll file should be present where tests are executed (the build directory).
|
||||
file(COPY uvmlite64.ll DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
add_custom_command(
|
||||
TARGET uvmlite
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/uvmlite64.ll" "$<TARGET_FILE_DIR:uvmlite>"
|
||||
)
|
||||
if (WIN32)
|
||||
add_custom_command(
|
||||
TARGET uvmlite
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:uvmlite>"
|
||||
)
|
||||
endif ()
|
||||
Reference in New Issue
Block a user