Adding "target_link_libraries(usb-1.0 PRIVATE windowsapp)" in CMakeLists.txt will result in the generated dll being unusable on Windows 7.