mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Enhancement for finding GLFW on WIN and copy .dll files to executable dir for some samples
This commit is contained in:
@@ -49,9 +49,17 @@ target_compile_features(cannyEdgeDetectorNPP PRIVATE cxx_std_17 cuda_std_17)
|
||||
# Copy data files to output directory
|
||||
add_custom_command(TARGET cannyEdgeDetectorNPP POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.pgm
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/teapot512.pgm
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
if(WIN32)
|
||||
add_custom_command(TARGET cannyEdgeDetectorNPP
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
${FreeImage_LIBRARY}/../FreeImage.dll
|
||||
${CMAKE_CURRENT_BINARY_DIR}/$<CONFIGURATION>
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "FreeImage not found - will not build sample 'cannyEdgeDetectorNPP'")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user