Config a shared library in Windows (DLL) and import it.
pkg
is a shared library. Build it and install it.main
is an exe. Build it, install it (just copy dependent DLLs) and run it.
The pkg
is dependent on fmt. Build them like:
cmake ... -DCMAKE_TOOLCHAIN_FILE=.../vcpkg.cmake -DCMAKE_INSTALL_PREFIX=.../