How to setup Intel IPP with Cmake in Visual Studio?

672 Views Asked by At

After installing Intel Performance Library (IPP) on Windows 10 a new option appears in Visual Studio -> Properties called Intel Performance Libraries. This makes it very easy to add IPP to a project.

Is there a way to adjust settings here with Cmake?

1

There are 1 best solutions below

2
xjossy On

To enable IPP in VS project you can use the built-in property VS_GLOBAL_UseIntelIPP of a target.

You can define the following macro and use it for all the targets:

macro(setup_intel_ipp_windows TARGET_NAME)
 if(MSVC)
  set_target_properties(${TARGET_NAME} PROPERTIES VS_GLOBAL_UseIntelIPP "Sequential") # Parallel_Static
 endif(MSVC)
endmacro(setup_intel_ipp_windows)