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

Comments

Projects
None yet
1 participant
@waruqi
Member

waruqi commented Aug 10, 2018

No description provided.

@waruqi waruqi added this to the v2.2.2 milestone Aug 10, 2018

@waruqi waruqi added new feature and removed improvement labels Aug 10, 2018

@waruqi waruqi added the in progress label Aug 17, 2018

@waruqi

This comment has been minimized.

Member

waruqi commented Aug 17, 2018

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

@waruqi

This comment has been minimized.

Member

waruqi commented Aug 21, 2018

@waruqi

This comment has been minimized.

Member

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

This comment has been minimized.

Member

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