Skip to content

Commit

Permalink
Add VCPKG manifest file and documentation (f3d-app#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meakk authored May 5, 2023
1 parent 71ffcfc commit aebf64f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/dev/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:
Expand Down
15 changes: 15 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "f3d",
"dependencies": [
"alembic",
"assimp",
"draco",
"opencascade",
{
"name": "vtk",
"default-features": false,
"features": [ "opengl" ]
}
],
"builtin-baseline": "60e2c07d20aeb4bf534a8deabf92a70cbcb07617"
}

0 comments on commit aebf64f

Please sign in to comment.