tools/CMakeLists: Use a macro for common code, fix custom_command output

Remove the explicit ${CMAKE_CURRENT_BINARY_DIR}/ prefix from the
add_custom_command OUTPUT part, fixes ninja warnings for me.

Differential Revision: http://reviews.llvm.org/D16153

llvm-svn: 258280
1 file changed