dgasmith / gau2grid

Fast computation of a gaussian and its derivative on a grid.
https://gau2grid.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
29 stars 15 forks source link

Making gau2grid subprojectable via CMake #68

Closed wavefunction91 closed 3 years ago

wavefunction91 commented 3 years ago

Addresses #63

It adds / changes the following

  1. CMAKE_SOURCE_DIR -> PROJECT_SOURCE_DIR (see #63)
  2. Adds a TARGET alias (gau2grid::gg) and enforces the local build tree to have the same header directory hierarchy as the installed target to allow for consistent manipulation / linkage of gau2grid both as a subproject and as a discovered target (e.g. find_package)
  3. Adds an option to toggle the __GG_NO_PRAGMA compiler def (needed on e.g. PPC).
wavefunction91 commented 3 years ago

@dgasmith this should be g2g, let me know if you need anything else

dgasmith commented 3 years ago

Thanks, I'll merge an pop a patch release!