I am trying to convert this https://github.com/OpenEtherCATsociety/SOEM library into a dll in order to import it in labview.Can i turn this library into a DLL?And how? Thank you!
If you want to configure CMake to build a .dll
, instead of a .lib
, you have to edit the top-level CMakeLists.txt
file from the SOEM repository. Instead of a STATIC
library, we want a SHARED
library, so change this:
add_library(soem STATIC
${SOEM_SOURCES}
${OSAL_SOURCES}
${OSHW_SOURCES}
${OSHW_EXTRA_SOURCES})
to this:
add_library(soem SHARED
${SOEM_SOURCES}
${OSAL_SOURCES}
${OSHW_SOURCES}
${OSHW_EXTRA_SOURCES})
Now, re-run nmake
(which will re-run CMake as well), and a DLL will be built instead.