mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Copying input files into BINDIR so that these samples will run properly
This commit is contained in:
@@ -47,3 +47,10 @@ target_compile_features(freeImageInteropNPP PRIVATE cxx_std_17 cuda_std_17)
|
||||
else()
|
||||
message(STATUS "FreeImage not found - will not build sample 'freeImageInteropNPP'")
|
||||
endif()
|
||||
|
||||
# Copy data files to output directory
|
||||
add_custom_command(TARGET freeImageInteropNPP POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../Common/data/teapot512.pgm
|
||||
${CMAKE_CURRENT_BINARY_DIR}/
|
||||
)
|
||||
@@ -48,3 +48,10 @@ target_compile_features(histEqualizationNPP PRIVATE cxx_std_17 cuda_std_17)
|
||||
else()
|
||||
message(STATUS "FreeImage not found - will not build sample 'histEqualizationNPP'")
|
||||
endif()
|
||||
|
||||
# Copy data files to output directory
|
||||
add_custom_command(TARGET histEqualizationNPP POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../Common/data/teapot512.pgm
|
||||
${CMAKE_CURRENT_BINARY_DIR}/
|
||||
)
|
||||
|
||||
@@ -35,3 +35,24 @@ target_link_libraries(watershedSegmentationNPP PRIVATE
|
||||
CUDA::nppif
|
||||
CUDA::cudart
|
||||
)
|
||||
|
||||
# Copy data files to output directory
|
||||
add_custom_command(TARGET watershedSegmentationNPP POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../Common/data/teapot_512x512_8u_Gray.raw
|
||||
${CMAKE_CURRENT_BINARY_DIR}/
|
||||
)
|
||||
|
||||
# Copy data files to output directory
|
||||
add_custom_command(TARGET watershedSegmentationNPP POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../Common/data/CT_skull_512x512_8u_Gray.raw
|
||||
${CMAKE_CURRENT_BINARY_DIR}/
|
||||
)
|
||||
|
||||
# Copy data files to output directory
|
||||
add_custom_command(TARGET watershedSegmentationNPP POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../Common/data/Rocks_512x512_8u_Gray.raw
|
||||
${CMAKE_CURRENT_BINARY_DIR}/
|
||||
)
|
||||
Reference in New Issue
Block a user