The same CMake commands apply to both Linux and Windows. Only the environment setup differs. The default compiler and generator are the platform defaults.
Use the same CMake configuration and build commands you used for Linux.
For application development with AOCL-Utils on Windows using Visual Studio:
Create a 64-bit console app C++ project in Microsoft Visual Studio 2022.
To select Clang-cl compiler, navigate to Project > Properties > Configuration Properties > General > Platform Toolset > LLVM(Clang-cl) or llvm.
Add the sources into project using:
Project > Add Existing item > select the source from the project source directory.
Update the include path in:
Project > Properties > C/C++ > General > Additional Include Directories
Update the AOCL-Utils library path (where libaoclutils.lib or libaoclutils_static.lib exist) in:
Project > Properties > Linker > General > Additional Library Directories
Update the AOCL-Utils library name in:
Project > Properties > Linker > Input > Additional Dependencies (libaoclutils.lib or libaoclutils_static.lib)
If AOCL-Utils dynamic library is used, copy the AOCL-Utils DLL library (libaoclutils.dll) to the same project application folder.
Compile the project and run the application.
Note
On Windows, use PATH instead of LD_LIBRARY_PATH for setting library paths.