I'm trying to use boost and cpp-netlib. The static library of cpp-netlib is about 40m(release version), even linking to a small helloworld could be very slow. So I'd like to try dynamic dll+ import lib when developing, how can I build dll+lib for cpp-netlib?
I tried modify the CMakeLists.txt, add SHARED to the lines
add_library(cppnetlib-uri SHARED ${CPP-NETLIB_URI_SRCS})
add_library(cppnetlib-server-parsers SHARED ${CPP-NETLIB_HTTP_SERVER_SRCS})
add_library(cppnetlib-client-connections SHARED ${CPP-NETLIB_HTTP_CLIENT_SRCS})
but only .dll are generated, there's no .lib. Google says there must be export functions. So one way could be writing some dummy function and export them to generate the .lib? Any other way?