Linking libtorch in my library

I am using cmake project and trying to link libtorch in my library but seems to have issues in linking with “cmake --target install”.
In CmakeLists.txt I have
target_link_libraries(${MY_LIBRARY_NAME} PRIVATE "${TORCH_LIBRARIES}")
Torch libraries are : torch;torch_library; $LIBTORCH_PATH/lib/;$LIBTORCH_PATH//lib/libkineto.a

Added libtorch include directories


But when I use My library in example test I get undefined reference symbol from

undefined reference to symbol 
lib/ error adding symbols: DSO missing from command line

Any help is well appreciated.