The default behaviour is to build a static library. This is controlled by the XPMP2_BUILD_SHARED_LIBS cmake variable. Set it to ON to build as a static library.
This commit adds the following:
a new header file (XPMP2Export.h) that controls symbol export.
A new CMake script to allow find_package(XPlaneSDK) to be used.
Export symbols were added to some existing .h files.
Allow XPMP2 to be built as a shared library.
The default behaviour is to build a static library. This is controlled by the XPMP2_BUILD_SHARED_LIBS cmake variable. Set it to ON to build as a static library.
This commit adds the following: