You may use these commands:
cd [PYTORCH_ROOT_DIR]
mkdir -p libtorch/include && mkdir -p libtorch/share && mkdir -p libtorch/bin
cp -r build/lib libtorch
cp -r torch/share/cmake libtorch/share

for dir in ATen c10 caffe2 torch
do 
    cp -r torch/include/$dir libtorch/include
done

But I can’t make sure the official libtorch is built as above.