If STATIC is not specified, cmake will determine whether it should be static or dynamic, which makes the option unpredictable.
Sorry for the spam, I misunderstood the reason why ViGEmClient showed up as dynamic library. It seems CMAKE makes decisions without consultation... This should work just right, and creates an option for someone who wishes to use it as a DLL. (I fully tested it this time I promise).
If STATIC is not specified, cmake will determine whether it should be static or dynamic, which makes the option unpredictable.
Sorry for the spam, I misunderstood the reason why ViGEmClient showed up as dynamic library. It seems CMAKE makes decisions without consultation... This should work just right, and creates an option for someone who wishes to use it as a DLL. (I fully tested it this time I promise).