Use oneCCL package from CMake ============================= ``oneCCLConfig.cmake`` and ``oneCCLConfigVersion.cmake`` are included into oneCCL distribution. With these files, you can integrate oneCCL into a user project with the `find_package `_ command. Successful invocation of ``find_package(oneCCL )`` creates imported target ``oneCCL`` that can be passed to the `target_link_libraries `_ command. For example: .. code-block:: cmake project(Foo) add_executable(foo foo.cpp) # Search for oneCCL find_package(oneCCL REQUIRED) # Connect oneCCL to foo target_link_libraries(foo oneCCL) oneCCLConfig files generation ***************************** To generate oneCCLConfig files for oneCCL package, use the provided ``cmake/scripts/config_generation.cmake`` file: .. code-block:: bash cmake [-DOUTPUT_DIR=] -P cmake/script/config_generation.cmake