From 191a29d3da6d43ab5389ed65781243d0179c005c Mon Sep 17 00:00:00 2001 From: Michael Migliore Date: Fri, 5 May 2023 18:20:22 +0200 Subject: [PATCH] Add VCPKG manifest file and documentation --- doc/dev/BUILD.md | 7 ++++++- vcpkg.json | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 vcpkg.json diff --git a/doc/dev/BUILD.md b/doc/dev/BUILD.md index 402875e4cc..95c7aed2f7 100644 --- a/doc/dev/BUILD.md +++ b/doc/dev/BUILD.md @@ -25,7 +25,7 @@ As stated in the dependencies, F3D is compatible with VTK >= 9.0.0, however, man Configure and generate the project with CMake, then build the software using your build system. -Here is some CMake options of interest:: +Here is some CMake options of interest: * `F3D_BUILD_APPLICATION`: Build the F3D executable. * `BUILD_TESTING`: Enable the [tests](TESTING.md). * `F3D_MACOS_BUNDLE`: On macOS, build a `.app` bundle. @@ -45,6 +45,11 @@ Some modules, plugins and bindings depending on external libraries can be option * `F3D_BINDINGS_PYTHON`: Generate python bindings (requires `Python` and `pybind11`). Disabled by default. * `F3D_BINDINGS_JAVA`: Generate java bindings (requires `Java` and `JNI`). Disabled by default. +## VCPKG + +It's possible to use VCPKG to automatically build dependencies. A manifest file `vcpkg.json` is available at your convenience. Please read [VCPKG documentation](https://vcpkg.io/en/getting-started.html). +Basically, just install VCPKG, and configure F3D using `-DCMAKE_TOOLCHAIN_FILE=[path to vcpkg]/scripts/buildsystems/vcpkg.cmake` option. + ## Installing Installation can be done through CMake, by running the following command: diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000000..35159bf6d4 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "f3d", + "dependencies": [ + "alembic", + "assimp", + "draco", + "opencascade", + { + "name": "vtk", + "default-features": false, + "features": [ "opengl" ] + } + ], + "builtin-baseline": "60e2c07d20aeb4bf534a8deabf92a70cbcb07617" +}