For some reason, the below CMake file fails to install the project libraries. It creates the directory in the right location, and it even recursively installs the headers...
You're just missing the RUNTIME DESTINATION
argument in the install(TARGETS...) command.
CMake treats shared libraries as runtime objects on "DLL platforms" like Windows. If you change your command to:
install(TARGETS MyLib LIBRARY DESTINATION "lib"
ARCHIVE DESTINATION "lib"
RUNTIME DESTINATION "bin"
COMPONENT library)
then you should find that MyLib.dll ends up in "devel_artifacts/bin".