Hi,
I just used your two files and that compiles fine for me on Ubuntu 14.04.
Maybe try including them by two different calls?
target_link_libraries(main Boost::program_options)
target_link_libraries(main ${TORCH_LIBRARIES})