Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow XPMP2 to be built as a shared library #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JeanPhilippeLebel
Copy link
Contributor

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:

  • 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant