Programming Guide

Contents

Use CMake with oneAPI Applications

The CMake packages provided with Intel oneAPI products allow a CMake project to make easy use of oneAPI libraries on Windows* or Linux*. Using the provided packages, the experience should be similar to how other system libraries integrate with a CMake project. There are dependency and other build variables provided to CMake project targets as desired.
Not all oneAPI component products support CMake. Those libraries that provide a CMake configuration can be identified by looking in the following locations:
  • On Linux:
    • System:
      /usr/local/lib/cmake
    • User:
      ~/lib/cmake
  • On Windows:
    HKEY_LOCAL_MACHINE\Software\Kitware\CMake\Packages\
To use the CMake packages, use the oneAPI libraries as you would other system libraries. For example, using
find_package(tbb)
ensures that your application's CMake package is using the oneTBB package.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.