Added Post Build Command

- Added post build command to Engine's CMakeLists to copy over the
     shader conductor's .dll file
This commit is contained in:
Light 2021-09-13 16:08:21 +04:30
parent eb00566953
commit c50b37d87f

View file

@ -57,4 +57,13 @@ if(WIN32)
target_link_libraries(Engine d3d11)
target_link_libraries(Engine dxguid)
target_link_libraries(Engine D3DCompiler)
endif()
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)