People, tell me how to build my dll on clion + cygwin under Windows, otherwise I’ve been digging foreign websites for the second hour, but I can’t find it. I found how to link to my project, but how to compile the library itself is not. Maybe there cpp and h files need to be formatted in a special way or CMakeLists.txt of which you need to enter a specific one? And then by default he stupidly me exe collects.

1 answer 1

It seems to figure out to create a dll, you need to register in CMakeLists.txt add_library (<application name> SHARED $ {SOURCE_FILES}) instead of add_executable (<application name> $ $ {SOURCE_FILES})