  if(NOT CMAKE_BUILD_TYPE)
          set(CMAKE_BUILD_TYPE Release)
  endif(NOT CMAKE_BUILD_TYPE)
-@@ -13,26 +17,25 @@ file(GLOB sminasrc
+@@ -13,26 +17,31 @@ file(GLOB sminasrc
  )
  list(APPEND sminasrc "${CMAKE_CURRENT_BINARY_DIR}/version.cpp")
  

diff --git a/CMakeLists.txt b/CMakeLists.txt
index be1354e..9b18a2b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,10 @@

     ${sminasrc}
 )
-set_target_properties(libsmina PROPERTIES OUTPUT_NAME "smina")
+
+# from https://sourceforge.net/p/openbabel/mailman/message/29256777/
+if(WIN32)
+    target_compile_definitions(libsmina PUBLIC USING_DYNAMIC_LIBS)
+endif(WIN32)
+
 target_include_directories(libsmina PUBLIC src/lib/)
-set(Boost_NO_BOOST_CMAKE ON)  #apparently required for newer boosts?
+# set(Boost_NO_BOOST_CMAKE ON)  #apparently required for newer boosts?
