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