I compile TBB with tbb_build command. To allow searching for TBB libraries without adding to the loading path, I want to install the TBB libraries (libtbb.so, libtbbmalloc.so, libtbbmalloc_proxy.so) to a destination folder. I used the command
install(FILES ${TBB_IMPORTED_TARGETS} DESTINATION libs)
However, cmake produce an error at the installation process:
file INSTALL cannot find "${application_source_folder}/TBB::tbb". Call Stack (most recent call first): cmake_install.cmake:84 (include)
Makefile:73: recipe for target 'install' failed
What can be done to tell cmake to install those libraries? As of now I have to manually copy to the destination.