Generating .dll using CMake Generating .dll using CMake windows windows

Generating .dll using CMake


As documented, the default type of library is determined by the BUILD_SHARED_LIBS variable. You can explicitly request a shared library with:

add_library(yourlib SHARED file.c ...)