From c50b37d87f576f21e49b9a9e3b91d58e493185ca Mon Sep 17 00:00:00 2001 From: Light Date: Mon, 13 Sep 2021 16:08:21 +0430 Subject: [PATCH] Added Post Build Command - Added post build command to Engine's CMakeLists to copy over the shader conductor's .dll file --- Engine/CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Engine/CMakeLists.txt b/Engine/CMakeLists.txt index 79e0c5c..d5cdc0a 100644 --- a/Engine/CMakeLists.txt +++ b/Engine/CMakeLists.txt @@ -57,4 +57,13 @@ if(WIN32) target_link_libraries(Engine d3d11) target_link_libraries(Engine dxguid) target_link_libraries(Engine D3DCompiler) -endif() \ No newline at end of file +endif() + + +message(BINARY DIRECTORY IS IN ${CMAKE_BINARY_DIR}) + +add_custom_command( + TARGET Engine + POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${CMAKE_BINARY_DIR}/Dependencies/ShaderConductor/Bin/Debug/ShaderConductor.dll + ${CMAKE_BINARY_DIR}/bin/Debug) \ No newline at end of file