-
Notifications
You must be signed in to change notification settings - Fork 655
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
Add CMake install targets #446
Conversation
May I ask is there a tendency if these changes will be ok or not? |
Hi @moritz-h, |
@yurymalkov Running CMake 2.8.12.2 in a CentOS 7 Docker container with hnswlib master:
Renaming Everything else is just adding features, no change for existing users:
|
I just discovered that the next CMake release 3.27 will print a deprecation warning for projects with compatibility to CMake older than 3.5, see https://cmake.org/cmake/help/git-master/release/dev/deprecate-policy-old.html |
Cool, thank you! We will merge the PR after @dyashuni will do a quick look at it. |
@moritz-h Thank you, looks good |
Add CMake install targets to allow installing the library using CMake and allow usage with find_package().
Other changes:
hnsw_lib
tohnswlib
).HNSWLIB_EXAMPLES
to allow enabling/disabling tests and examples explicitly. Option defaults to previous behavior checkingCMAKE_PROJECT_NAME STREQUAL PROJECT_NAME