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:
@@ -52,6 +52,14 @@ if(${FreeImage_FOUND})
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../../../Common/data/teapot512.pgm
|
||||
${CMAKE_CURRENT_BINARY_DIR}/
|
||||
)
|
||||
if(WIN32)
|
||||
add_custom_command(TARGET freeImageInteropNPP
|
||||
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 'freeImageInteropNPP'")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user