diff --git a/Makefile b/Makefile index 827a37bfc..7a6a2f5aa 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,6 @@ CMAKE_PARAMS := .PHONY: all clean all: renderdoc - @ln -sf "$(DST_DIR)/bin" @mkdir -p "$(DST_DIR)" && cd "$(DST_DIR)" && \ cmake $(CMAKE_PARAMS) "$(SRC_DIR)" && \ $(MAKE) diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index cc1eb9b4a..2cca72770 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -294,3 +294,8 @@ target_include_directories(renderdoc ${RDOC_INCLUDES}) target_link_libraries(renderdoc ${RDOC_LIBRARIES}) install (TARGETS renderdoc DESTINATION lib) + +add_custom_command(TARGET renderdoc POST_BUILD + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_SOURCE_DIR}/bin/) +add_custom_command(TARGET renderdoc POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy $ ${CMAKE_SOURCE_DIR}/bin/) diff --git a/renderdoccmd/CMakeLists.txt b/renderdoccmd/CMakeLists.txt index 8ad6dfa4b..c8f63331c 100644 --- a/renderdoccmd/CMakeLists.txt +++ b/renderdoccmd/CMakeLists.txt @@ -44,3 +44,8 @@ target_include_directories(renderdoccmd ${includes}) target_link_libraries(renderdoccmd ${libraries}) install (TARGETS renderdoccmd DESTINATION bin) + +add_custom_command(TARGET renderdoccmd POST_BUILD + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_SOURCE_DIR}/bin/) +add_custom_command(TARGET renderdoccmd POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy $ ${CMAKE_SOURCE_DIR}/bin/)