- IF USE VCPKG IN WIN32
- using
vcpkg
to install it - set the
ENV_VAR
--->VCPKG_ROOT
andVCPKG_DEFAULT_TRIPLET
- set the
XXX_DIR
- such as
set(TBB_DIR $ENV{VCPKG_ROOT}/installed/x64-windows/share/tbb CACHE STRING "")
- such as
- using
find_package
andtarget_link_libraries
// Linux[Ubuntu]
sudo apt-get install libtbb-dev
sudo apt-get install libbenchmark-dev
// Windows[vcpkg]
vcpkg install tbb:x64-windows
vcpkg install benchmark:x64-windows