Skip to content

Commit

Permalink
[doc] update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasPaulin committed Oct 6, 2022
1 parent 684d411 commit bc3a67e
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions doc/basics/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Radium relies on several external libraries to load files or to represent some d
* [Engine] glm, globjects, glbindings, tinyEXR
* [IO] Assimp
* [Gui] Qt Core, Qt Widgets and Qt OpenGL v5.5+ (5.14 at least, Qt6 support is experimental), PowerSlider
* [Dataflow] stduuid
* [Dataflow] stduuid, RadiumNodeEditor
* [doc] Doxygen-awesome-css
* stb_image

Expand Down Expand Up @@ -86,20 +86,21 @@ For convenience, dependencies install procedure create a configuration file, you
The cmake config file `/path/to/external/install/radium-options.cmake` contains, depending on your dependency configuration:

~~~{.cmake}
set(RADIUM_DEP_PREFIX "/path/to/external/install/")
set(Eigen3_DIR "${RADIUM_DEP_PREFIX}/share/eigen3/cmake/" CACHE PATH "My Eigen")
set(OpenMesh_DIR "${RADIUM_DEP_PREFIX}/share/OpenMesh/cmake/" CACHE PATH "My OpenMesh")
set(cpplocate_DIR "${RADIUM_DEP_PREFIX}/share/cpplocate/" CACHE PATH "My cpplocate")
set(glm_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/glm/" CACHE PATH "My glm")
set(glbinding_DIR "${RADIUM_DEP_PREFIX}/share/glbinding/" CACHE PATH "My glbinding")
set(globjects_DIR "${RADIUM_DEP_PREFIX}/share/globjects/" CACHE PATH "My globjects")
set(stb_DIR "${RADIUM_DEP_PREFIX}/include/stb/" CACHE PATH "My stb")
set(assimp_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/assimp-5.0/" CACHE PATH "My assimp")
set(tinyply_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/tinyply/" CACHE PATH "My tinyply")
set(tinyEXR_DIR "${RADIUM_DEP_PREFIX}/share/tinyEXR/cmake/" CACHE PATH "My tinyEXR")
set(nlohmann_json_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/nlohmann_json/" CACHE PATH "My json")
set(stduuid_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/stduuid/" CACHE PATH "My stduuid")
set(PowerSlider_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/PowerSlider/" CACHE PATH "My PowerSlider")
set(RADIUM_DEP_PREFIX "/path/to/external/install/")
set(Eigen3_DIR "${RADIUM_DEP_PREFIX}/share/eigen3/cmake/" CACHE PATH "My Eigen")
set(OpenMesh_DIR "${RADIUM_DEP_PREFIX}/share/OpenMesh/cmake/" CACHE PATH "My OpenMesh")
set(cpplocate_DIR "${RADIUM_DEP_PREFIX}/share/cpplocate/" CACHE PATH "My cpplocate")
set(glm_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/glm/" CACHE PATH "My glm")
set(glbinding_DIR "${RADIUM_DEP_PREFIX}/share/glbinding/" CACHE PATH "My glbinding")
set(globjects_DIR "${RADIUM_DEP_PREFIX}/share/globjects/" CACHE PATH "My globjects")
set(stb_DIR "${RADIUM_DEP_PREFIX}/include/stb/" CACHE PATH "My stb")
set(assimp_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/assimp-5.0/" CACHE PATH "My assimp")
set(tinyply_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/tinyply/" CACHE PATH "My tinyply")
set(tinyEXR_DIR "${RADIUM_DEP_PREFIX}/share/tinyEXR/cmake/" CACHE PATH "My tinyEXR")
set(nlohmann_json_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/nlohmann_json/" CACHE PATH "My json")
set(stduuid_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/stduuid/" CACHE PATH "My stduuid")
set(RadiumNodeEditor_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/RadiumNodeEditor/" CACHE PATH "My NodeEditor")
set(PowerSlider_DIR "${RADIUM_DEP_PREFIX}/lib/cmake/PowerSlider/" CACHE PATH "My PowerSlider")
set(RADIUM_IO_ASSIMP ON CACHE BOOL "Radium uses assimp io")
set(RADIUM_IO_TINYPLY ON CACHE BOOL "Radium uses tinyply io")
~~~
Expand All @@ -110,19 +111,20 @@ You can also provide these variables as cmake command line argument:

~~~{.bash}
cmake \
-DEigen3_DIR /path/to/external/install/share/eigen3/cmake/ \
-DOpenMesh_DIR /path/to/external/install/share/OpenMesh/cmake/ \
-Dcpplocate_DIR /path/to/external/install/share/cpplocate/ \
-Dnlohmann_json_DIR /path/to/external/install/lib/cmake/nlohmann_json/ \
-Dstduuid_DIR /path/to/external/install/lib/cmake/stduuid/ \
-Dglm_DIR /path/to/external/install/lib/cmake/glm/ \
-Dglbinding_DIR /path/to/external/install/share/glbinding/ \
-Dglobjects_DIR /path/to/external/install/share/globjects/ \
-DPowerSlider_DIR /path/to/external/install/lib/cmake/PowerSlider \
-Dstb_DIR /path/to/external/install/include/stb/ \
-Dassimp_DIR /path/to/external/install/lib/cmake/assimp-5.0/ \
-Dtinyply_DIR /path/to/external/install/lib/cmake/tinyply/ \
-DtinyEXR_DIR /path/to/external/install/share/tinyEXR/cmake/ \
-DEigen3_DIR /path/to/external/install/share/eigen3/cmake/ \
-DOpenMesh_DIR /path/to/external/install/share/OpenMesh/cmake/ \
-Dcpplocate_DIR /path/to/external/install/share/cpplocate/ \
-Dnlohmann_json_DIR /path/to/external/install/lib/cmake/nlohmann_json/ \
-Dstduuid_DIR /path/to/external/install/lib/cmake/stduuid/ \
-DRadiumNodeEditor_DIR /path/to/external/install/lib/cmake/RadiumNodeEditor/ \
-Dglm_DIR /path/to/external/install/lib/cmake/glm/ \
-Dglbinding_DIR /path/to/external/install/share/glbinding/ \
-Dglobjects_DIR /path/to/external/install/share/globjects/ \
-DPowerSlider_DIR /path/to/external/install/lib/cmake/PowerSlider \
-Dstb_DIR /path/to/external/install/include/stb/ \
-Dassimp_DIR /path/to/external/install/lib/cmake/assimp-5.0/ \
-Dtinyply_DIR /path/to/external/install/lib/cmake/tinyply/ \
-DtinyEXR_DIR /path/to/external/install/share/tinyEXR/cmake/ \
.......
~~~

Expand Down

0 comments on commit bc3a67e

Please sign in to comment.