Use cmake's dll export control facilities.