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

Update CMakeLists and start building shared library #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VanderCat
Copy link

CMakeLists.txt was formatted poorly, lots of repetition, no flexibility. I refactored it to build shared library (e.g. .dll on Windows or .so on Linux) in order to make it more lightweight. Also projects can use this as a library now

List of changes:

  • Added exports
  • CMakeLists
    • Removed repetition
    • Renamed all kosinski_ prefixes to just k (kosinski_compress -> kcompress, kosinskim_compare -> kmcompare)
    • Added extra options:
      • Only build library
      • Build kcompare (disabled by default as it's only used for tests)
      • Enable debug information (it's no longer extra files with _d suffix)

@VanderCat
Copy link
Author

Example of bindings using a shared library to other languages: https://github.com/VanderCat/LuaKosinski

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