diff options
author | Thomas White <taw@physics.org> | 2020-07-29 16:33:18 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:45 +0200 |
commit | 976665b7cc8346962e759370469bb79b423cfed9 (patch) | |
tree | 8d260df1ffb50d01d37e38452c60168db75eb2c7 /libcrystfel | |
parent | ccf7605bbf42258631b1a0c6d390130c6c89bd21 (diff) |
Add ncurses to Meson
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/meson.build | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libcrystfel/meson.build b/libcrystfel/meson.build index f2b6bbe5..6a3b2195 100644 --- a/libcrystfel/meson.build +++ b/libcrystfel/meson.build @@ -12,7 +12,12 @@ if fftwdep.found() conf_data.set10('HAVE_FFTW', 1) endif -# FIXME: Curses, Xgandalf, pinkindexer, FDIP +ncursesdep = dependency('ncurses', required: false) +if ncursesdep.found() + conf_data.set10('HAVE_CURSES', 1) +endif + +# FIXME: Xgandalf, pinkindexer, FDIP libcrystfel_versionc = vcs_tag(input: 'src/libcrystfel-version.c.in', @@ -100,7 +105,7 @@ 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], + hdf5dep, pthreaddep, ncursesdep], install : true) libcrystfeldep = declare_dependency(include_directories : libcrystfel_includes, |