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

Improve lib.detect.find_package to support vcpkg #184

Closed
waruqi opened this issue Aug 10, 2018 · 4 comments
Closed

Improve lib.detect.find_package to support vcpkg #184

waruqi opened this issue Aug 10, 2018 · 4 comments
Milestone

Comments

@waruqi
Copy link
Member

waruqi commented Aug 10, 2018

No description provided.

@waruqi
Copy link
Member Author

waruqi commented Aug 17, 2018

find vcpkg directory: $ xmake l detect.sdks.find_vcpkgdir

@waruqi
Copy link
Member Author

waruqi commented Aug 21, 2018

@waruqi
Copy link
Member Author

waruqi commented Aug 21, 2018

xmake will attempt to detect the vcpkg root directory automatically if we have executed $ vcpkg integrate install.

And we can also set the vcpkg directory manually.

$ xmake f --vcpkg=f:\vcpkg

@waruqi waruqi added done and removed in progress labels Aug 21, 2018
@waruqi
Copy link
Member Author

waruqi commented Aug 21, 2018

Find and add package.

target("test")
    on_load(function (target)
        import("lib.detect.find_package")
        target:add(find_package("zlib"))
    end)

If you want to known more infomation, you can see find_package and #122

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

No branches or pull requests

1 participant