packages feed

hcdt-0.1.1.1: hcdt.cabal

cabal-version:       2.2
name:                hcdt
version:             0.1.1.1
synopsis:            2d Delaunay triangulation
description:         
    This library performs the constrained or unconstrained 2d Delaunay triangulation.
    .
    It uses the C++ library 'CDT'.
    .
    For examples, look the README file.
homepage:            https://github.com/stla/hcdt#readme
license:             BSD-3-Clause
license-file:        LICENSE
author:              Stéphane Laurent
maintainer:          laurent_step@outlook.fr
copyright:           2022 Stéphane Laurent
category:            Geometry
build-type:          Simple
extra-source-files:  README.md
                     CHANGELOG.md
                     LICENSE_CDT.txt

library
  hs-source-dirs:      src
  exposed-modules:     Geometry.HCDT
  other-modules:       Geometry.HCDT.Types
                     , Geometry.HCDT.Triangulation
                     , Geometry.HCDT.Delaunay
                     , Geometry.HCDT.Utils
  build-depends:       base >= 4.7 && < 5
                     , containers >= 0.6.4.1
                     , indexed-traversable >= 0.1.2
                     , hashable >= 1.3.5.0
                     , witherable >= 0.4
  if impl(ghc >= 9.4)
    build-depends:     system-cxx-std-lib == 1.0
  elif os(darwin) || os(freebsd)
    extra-libraries:   c++11
  else
    extra-libraries:   stdc++
  include-dirs:        cpp
  C-sources:           cpp/hcdt.cpp
  install-includes:    cpp/CDT.h
                     , cpp/CDT.hpp
                     , cpp/CDTUtils.h
                     , cpp/CDTUtils.hpp
                     , cpp/hcdt.hpp
                     , cpp/KDTree.h
                     , cpp/LocatorKDTree.h
                     , cpp/portable_nth_element.hpp
                     , cpp/predicates.h
                     , cpp/remove_at.hpp
                     , cpp/Triangulation.h
                     , cpp/Triangulation.hpp
  ghc-options:         -Wall 
                       -optcxx-std=c++11
  if os(darwin) || os(freebsd)
    ghc-options:       -optcxx-stdlib=libc++
  other-extensions:    CPP
                     , ForeignFunctionInterface
                     , InstanceSigs
  default-language:    Haskell2010

source-repository head
  type:     git
  location: https://github.com/stla/hcdt