dll linking - Code - CMake Discourse
discourse.cmake.org › t › dll-linkingJan 10, 2022 · That means you need to link to the associated “libabcd.lib”. The dll must be in your PATH (or one of the known directories) when you run your program then. bambo09 (bambo09) January 10, 2022, 8:34am #3. And how to link that lib? fenrir (Jakub Zakrzewski) January 10, 2022, 8:41am #4.
add_library — CMake 3.23.0-rc4 Documentation
cmake.org › cmake › helpAn object library compiles source files but does not archive or link their object files into a library. Instead other targets created by add_library() or add_executable() may reference the objects using an expression of the form $<TARGET_OBJECTS:objlib> as a source, where objlib is the object library name. For example: