diff options
author | Thomas White <taw@physics.org> | 2020-07-30 13:54:57 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-30 13:54:57 +0200 |
commit | 2b6e28bb24b76cb355d431b1453fce60977f6050 (patch) | |
tree | d31aaf8d28702c865ab173a1f7da779e6468bf0e /libcrystfel/meson.build | |
parent | a833ebad16444a66c146a3ddd686b1b6b2050ab9 (diff) |
Add checks for Xgandalf, PinkIndexer and FDIP
PinkIndexer still needs updating for DataTemplate.
FDIP weirdly needs two include paths, so it doesn't work here currently.
Diffstat (limited to 'libcrystfel/meson.build')
-rw-r--r-- | libcrystfel/meson.build | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/libcrystfel/meson.build b/libcrystfel/meson.build index fd4edd1b..f5dc15e4 100644 --- a/libcrystfel/meson.build +++ b/libcrystfel/meson.build @@ -17,8 +17,34 @@ if ncursesdep.found() conf_data.set10('HAVE_CURSES', 1) endif -# FIXME: Xgandalf, pinkindexer, FDIP +xgandalfdep = cc.find_library('xgandalf', required: false) +if xgandalfdep.found() and cc.has_function('IndexerPlain_index', + prefix: '#include <xgandalf/adaptions/crystfel/IndexerPlain.h>', + dependencies: xgandalfdep) + conf_data.set10('HAVE_XGANDALF', 1) +else + xgandalfdep = dependency('', required: false) +endif +pinkindexerdep = dependency('', required: false) +#pinkindexerdep = cc.find_library('pinkIndexer', required: false) +#if pinkindexerdep.found() and cc.has_function('PinkIndexer_indexPattern', +# prefix: '#include <pinkIndexer/adaptions/crystfel/PinkIndexer.h>', +# dependencies: pinkindexerdep) +# conf_data.set10('HAVE_PINKINDEXER', 1) +#else +# pinkindexerdep = dependency('', required: false) +#endif + +fdipdep = dependency('', required: false) +#fdipdep = cc.find_library('fastDiffractionImageProcessing', required: false) +#if fdipdep.found() and cc.has_function('allocatePeakList', +# prefix: '#include <fastDiffractionImageProcessing/peakList.h>', +# dependencies: fdipdep) +# conf_data.set10('HAVE_FDIP', 1) +#else +# fdipdep = dependency('', required: false) +#endif libcrystfel_versionc = vcs_tag(input: 'src/libcrystfel-version.c.in', output: 'libcrystfel-version.c') @@ -105,7 +131,8 @@ libcrystfel_conf_inc = include_directories('.') libcrystfel = library('crystfel', [libcrystfel_sources, libcrystfel_versionc], include_directories : [libcrystfel_includes, libcrystfel_conf_inc], dependencies : [mdep, utildep, fftwdep, gsldep, zlibdep, - hdf5dep, pthreaddep, ncursesdep], + hdf5dep, pthreaddep, ncursesdep, + xgandalfdep, pinkindexerdep, fdipdep], install : true) libcrystfeldep = declare_dependency(include_directories : libcrystfel_includes, |