Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 062bf3d
  • /
  • VofDataUtils
  • /
  • CMakeLists.txt
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge
swh:1:cnt:9f47d9c68df2ea4241814ca22caa2df39938da82
directory badge
swh:1:dir:3f0aa9ddf77c287fe109646916b03d86abf59548

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
CMakeLists.txt
# Overwrite policy version inherited vom ParaView CMake.
cmake_policy(PUSH)
cmake_policy(VERSION 3.12...3.29)

find_package(CGAL REQUIRED)

vtk_module_add_module(VofFlow::VofDataUtils FORCE_STATIC
  NOWRAP_HEADERS
    Grid/DataInterpolation.h
    Grid/DomainInfo.h
    Grid/Gradient.h
    Grid/GridData.h
    Grid/GridIterator.h
    Grid/GridTypes.h
    Math/Vector.h
    Misc/CgalUtil.h
    Misc/ListSearch.h
    Misc/Profiling.h
    Misc/VofData.h
    Plic/CachedPlic.h
    Plic/Plic.h
    Plic/Plic3.h
    Plic/PlicPolyData.h
    Plic/PlicUtil.h
    Plic/PolyCell.h
    Plic/Polygon3D.h
    VtkUtil/VtkUtilArray.h
    VtkUtil/VtkUtilMPI.h
    VtkUtil/VtkUtilWriter.h
  SOURCES
    Grid/DataInterpolation.cpp
    Grid/DomainInfo.cpp
    Grid/Gradient.cpp
    Plic/Plic.cpp
    Plic/Plic3.cpp
    Plic/PlicPolyData.cpp
    Plic/PlicUtil.cpp
    Plic/PolyCell.cpp
    Plic/Polygon3D.cpp
    VtkUtil/VtkUtilArray.cpp
    VtkUtil/VtkUtilWriter.cpp)
target_compile_features(VofDataUtils PUBLIC cxx_std_17)
set_target_properties(VofDataUtils PROPERTIES CXX_EXTENSIONS OFF)

target_link_libraries(VofDataUtils PUBLIC CGAL::CGAL)

option(VOFFLOW_USE_TRACY "" OFF)
if (VOFFLOW_USE_TRACY)
  # We require TRACY_DELAYED_INIT. This would require an vcpkg overlay port, use fetch content instead.
  FetchContent_Declare(tracy
    URL "https://github.com/wolfpld/tracy/archive/v0.10.tar.gz"
    URL_HASH SHA256=a76017d928f3f2727540fb950edd3b736caa97b12dbb4e5edce66542cbea6600)
  FetchContent_GetProperties(tracy)
  if (NOT tracy_POPULATED)
    message(STATUS "Fetch tracy ...")
    FetchContent_Populate(tracy)
    option(TRACY_ENABLE "" ON)
    option(TRACY_DELAYED_INIT "" OFF)
    option(TRACY_STATIC "" OFF)
    add_subdirectory(${tracy_SOURCE_DIR} ${tracy_BINARY_DIR}) # TODO EXCLUDE_FROM_ALL but need to install .so
    mark_as_advanced(FORCE
      FETCHCONTENT_SOURCE_DIR_TRACY
      FETCHCONTENT_UPDATES_DISCONNECTED_TRACY)
  endif ()

  target_link_libraries(VofDataUtils PUBLIC TracyClient)

  target_compile_definitions(VofDataUtils PUBLIC VOFFLOW_USE_TRACY)
endif ()

cmake_policy(POP)

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API