Using the CMake Config File
Intel® oneAPI Math Kernel Library (oneMKL) ships with a CMake config file for easy integration of oneMKL into user-applications that already use CMake. This is a Config-mode file that you can use in find_package() macros. For different package modes, please refer to find_package CMake documentation.
MKLConfig.cmake is in <MKLROOT>/lib/cmake/mkl. If CMake cannot find it by default, you can specify its path as -DMKL_DIR=<MKLROOT>/lib/cmake/mkl in the cmake configure command. The top of the file contains an up-to-date usage comment-block for reference and you can refer to <MKLROOT>/examples/<type>/CMakeLists.txt for more details about how to consume MKLConfig.cmake in CMake projects.