# Booleans
option('with_tests', type: 'boolean', value: false)
option('with_examples', type: 'boolean', value: false)
option('with_xtensor', type: 'boolean', value: false)
option('with_eigen', type: 'boolean', value: false)
option('with_rpc', type: 'boolean', value: false)
option('with_rpc_client_only', type: 'boolean', value: false)
option('with_cache', type: 'boolean', value: false)
option('pure_lib', type: 'boolean', value: true)
option('with_rust_core', type: 'boolean', value: false)
option(
    'with_fast_nlist',
    type: 'feature',
    value: 'auto',
    description: 'linkcell/minimage pair list. Auto when cargo and rustc 1.89 or newer are found; otherwise the C++ pair scan is used.',
)
option(
    'with_cp2k',
    type: 'feature',
    value: 'disabled',
    description: 'CP2KPot, the potserv CP2K backend and libcp2kc_rgpot.so against libcp2k (pkg-config libcp2k); needs with_rpc',
)
option(
    'with_mpi',
    type: 'feature',
    value: 'disabled',
    description: 'Link MPI so calculator groups can split and share across ranks',
)
option('with_xtb', type: 'boolean', value: false)
option(
    'with_xckernel',
    type: 'boolean',
    value: false,
    description: 'In-process libxckernel XC Fock/fxc (generated C ABI; not a Potential)',
)
option(
    'with_dftd3',
    type: 'boolean',
    value: false,
    description: 'Link conda-forge s-dftd3 (simple-dftd3) C API',
)
option(
    'with_dftd4',
    type: 'boolean',
    value: false,
    description: 'Link conda-forge dftd4 C API',
)
# Yields into dftd4 / multicharge wraps (both declare lapack with yield).
# auto looks for liblapack; wheel/sdist pass openblas (libopenblas).
option(
    'lapack',
    type: 'combo',
    value: 'auto',
    choices: ['auto', 'mkl', 'mkl-rt', 'openblas', 'netlib', 'custom'],
    description: 'LAPACK vendor for the dftd4 wrap and nested multicharge',
)
option(
    'with_expr',
    type: 'boolean',
    value: false,
    description: 'Compile vendored OpenMM Lepton (third_party/lepton)',
)
option('with_tblite', type: 'boolean', value: false)
option('with_metatomic', type: 'boolean', value: false)
option(
    'with_skala',
    type: 'boolean',
    value: false,
    description: 'Skala XC via NWChemPot / libnwchemc (requires with_rpc)',
)
option(
    'with_python',
    type: 'boolean',
    value: false,
    description: 'Build pip-installable Python package (rgpot._core)',
)
option(
    'with_fortran_pots',
    type: 'feature',
    value: 'auto',
    description: 'Fortran-backed potentials (CuH2; grows with the eOn migration). Independent of the RPC options.',
)
option(
    'with_highway',
    type: 'feature',
    value: 'auto',
    description: 'Google Highway runtime ISA dispatch for the rgpot::simd LJ, Morse, EAM and orthorhombic-fold kernels. auto uses libhwy >= 1.2 or the wrap when that tree is already present. disabled keeps the scalar kernels.',
)
option(
    'with_ipi',
    type: 'feature',
    value: 'auto',
    description: 'i-PI socket server Potential (IPIPot), driver client (IPIDriver) and rgpot-ipi-driver (POSIX sockets). auto is on except on Windows.',
)
option(
    'with_water',
    type: 'boolean',
    value: false,
    description: 'Flexible TIP4P, SPC/E and TIP4P-Pt kernels. Defaults false, matching the eOn with_water option.',
)
option(
    'with_eam_table',
    type: 'boolean',
    value: false,
    description: 'EAM and Finnis-Sinclair potentials read from LAMMPS funcfl, setfl and eam/fs tables.',
)
option(
    'with_lammps',
    type: 'feature',
    value: 'auto',
    description: 'LAMMPS pair_style rgpot and the lj/cut comparison. Needs the lammps Python module. pair_style rgpot also needs lammps_src.',
)
option(
    'lammps_src',
    type: 'string',
    value: '',
    description: 'LAMMPS src directory that contains pair.h, matching the liblammps that will load the plugin.',
)
option(
    'lammps_exe',
    type: 'string',
    value: '',
    description: 'lmp built from lammps_src. When set, the LAMMPS test also runs pair_style rgpot.',
)
option(
    'with_gromacs',
    type: 'feature',
    value: 'auto',
    description: 'GROMACS mdrun -plumed using the RGPOT collective variable.',
)
option(
    'with_gromacs_dropin',
    type: 'feature',
    value: 'disabled',
    description: 'librgpot_gromacs, the libcp2k API GROMACS -DGMX_CP2K=ON links, so mdrun takes QM/MM energies and forces from any rgpot potential',
)
option(
    'gromacs_dropin_gmx',
    type: 'string',
    value: '',
    description: 'gmx of a double-precision GROMACS linked against librgpot_gromacs; empty looks for gmx_d on PATH and skips the mdrun tests without it',
)
option(
    'with_openmm',
    type: 'feature',
    value: 'auto',
    description: 'OpenMM shifted Lennard-Jones comparison.',
)
option(
    'with_plumed',
    type: 'feature',
    value: 'auto',
    description: 'PLUMED RGPOT collective variable.',
)
option(
    'with_long_range',
    type: 'boolean',
    value: false,
    description: 'Ewald, PME, dispersion and NLH summands.',
)
option(
    'with_cuda',
    type: 'boolean',
    value: false,
    description: 'Compile the Ewald, PME and pair-sum kernels with nvcc.',
)
