Link DLL

How do I link a DLL I’ve made to a CMAKE project?

Some more information is needed here. Is the DLL made in your project or are you being handed a DLL from somewhere else (as far as CMake is concerned)?

However, one does not link to DLL files. These contain the actual code and are loaded at runtime. Instead, the linker consumes .lib files which contain a list of symbols provided by a given DLL (or are static and contain the code directly).