I have a C++ project like this
my_project
|___ app
| |__ main.cpp
|___ include
| |__ first.h
| |__ second.h
|___ libs
| |__ first.dll
| |__ second.dll
|___ CMakeLists.txt
Assume the target name from the main.cpp is my_target. I would like to link my_target with both the DLL libs in libs directory. The header files found in include directory are the definitions for the .DLL files found in libs directory. Can we use .DLL libs directly with C++ code on Windows? If it is possible, then how should we write the CMakeLists.txt for it? I have not found a helpful resource on this topic. Most of the content on the internet either says it is not possible to link to .DLL files or that we have to convert them into .LIB files first.