diff options
| author | paercebal <paercebal@gmail.com> | 2017-08-29 18:21:31 +0200 |
|---|---|---|
| committer | paercebal <paercebal@gmail.com> | 2017-08-29 18:21:31 +0200 |
| commit | 23649f58ec58196ff6e7f0b25f2d13f4b0c27cc9 (patch) | |
| tree | 660fad7355a74c9db9cad6f8e3377f4fa2a269e0 /docs | |
| parent | ab78c3b6edc666d81bb4389cea70f8e8779f9e40 (diff) | |
| download | vcpkg-23649f58ec58196ff6e7f0b25f2d13f4b0c27cc9.tar.gz vcpkg-23649f58ec58196ff6e7f0b25f2d13f4b0c27cc9.zip | |
Add doc on Vcpkg integration per project
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/about/faq.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/about/faq.md b/docs/about/faq.md index 9178f9b9a..43039258f 100644 --- a/docs/about/faq.md +++ b/docs/about/faq.md @@ -60,6 +60,14 @@ For example, you can add support for your "MyRelease" configuration by adding in ``` Of course, this will only produce viable binaries if your custom configuration is compatible with the target configuration (e.g. they should both link with the same runtime library). +## I can't use user-wide integration. Can I use a per-project integration? + +Yes. The Visual Studio integration is actually enabled by the `<vcpkg_root>\scripts\buildsystems\msbuild\vcpkg.targets` file. So all you need is to import it in your .vcxproj file, replacing `<vcpkg_root>` with the path where you installed vcpkg: + +``` +<Import Project="<vcpkg_root>\scripts\buildsystems\msbuild\vcpkg.targets" /> +``` + ## How is CMake used internally by Vcpkg? Vcpkg uses CMake internally as a build scripting language. This is because CMake is already an extremely common build system for cross-platform open source libraries and is becoming very popular for C++ projects in general. It is easy to acquire on Windows, does not require system-wide installation, and legible for unfamiliar users. |
