Use groups in CMake install command for libraries On Windows shared libraries should be installed into the bin directory. Using grouping within CMake based on the target type fixes this issue.