... | ... | @@ -47,17 +47,17 @@ vcpkg supports several of them officially, for which the ports undergo strict CI |
|
|
|
|
|
On the other hand, vcpkg on Windows officially supports both *shared* linkage triplets (`x64-windows`, `x86-windows`, `arm64-windows`, etc.), _as well as_ the *static* ones (`x64-windows-static`), leaving you with a [choice](Compilation#static-vs-dynamic-linkage).
|
|
|
|
|
|
This all means that, depending on the platform you will be working on, a triplet used will cause different linkage, which, in effect, will require different set of CMake parameters to be passed when compiling KMyMoney. Refer to the [CMake switches](Compilation#cmake-switches) section for details on that.
|
|
|
|
|
|
This all means that, depending on the platform you will be working on, a triplet used will cause different linkage, which, in effect, will require [different set of CMake parameters](#setting-up-your-dev-environment) to be passed when compiling KMyMoney.
|
|
|
|
|
|
## Setting-up your dev environment
|
|
|
|
|
|
Simply enable an additional switch in your CMake command:\
|
|
|
`-DCMAKE_TOOLCHAIN_FILE=[vcpkg root]/scripts/buildsystems/vcpkg.cmake`
|
|
|
|
|
|
|
|
|
Refer to [Using vcpkg with CMake](https://github.com/microsoft/vcpkg#using-vcpkg-with-cmake) guide on project's website for more details, as well as [CMake integration](https://github.com/microsoft/vcpkg/blob/master/docs/users/integration.md#cmake-integration) section of the documentation. Additional vcpkg CMake switches are documented [here](https://github.com/microsoft/vcpkg/blob/master/docs/users/manifests.md#cmake-integration).
|
|
|
|
|
|
Additionally, depending on the triplet chosen, you also have to have KMyMoney to link statically. Refer to the [CMake switches](Compilation#cmake-switches) section for details on that.
|
|
|
|
|
|
## Compiling the dependencies
|
|
|
|
|
|
After setting up your dev environment as instructed above, compiling the project with CMake will automatically trigger vcpkg to build the required packages, according to the `vcpkg.json` manifest file that is present in the root folder of the repository.
|
... | ... | |