My whole project uses
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
to place all runtime binaries in the bin directory.
However i need to place some dll's in a subdirectory named "scripts", i tried following code to set the variable for the specific target:
set_target_properties(my_script_dll PROPERTIES
CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/scripts"
)
But it doesn't work, the dll's are still placed under bin.
Is there a way to set the output directory only for a specific target?