ode-toolbox

ODE integration tools
git clone https://git.0xfab.ch/ode-toolbox.git
Log | Files | Refs | README | LICENSE

meson.build (791B)


      1 project('ode_toolbox', 'cpp',
      2   version:
      3   '1.0',
      4   default_options: ['cpp_std=c++11', 'b_ndebug=if-release']
      5 )
      6 
      7 cpp_args = []
      8 if get_option('precision') == 'single'
      9   cpp_args += ['-D_FLOAT_PRECISION_']
     10 endif
     11 add_project_arguments(cpp_args, language: 'cpp')
     12 
     13 install_subdir('include/ODETB', install_dir: get_option('includedir'))
     14 inc = include_directories('include')
     15 ode_toolbox_omp = dependency('openmp', required: false)
     16 
     17 ode_toolbox_dep = declare_dependency(
     18   compile_args: cpp_args,
     19   dependencies: ode_toolbox_omp,
     20   include_directories: inc
     21 )
     22 
     23 if get_option('test')
     24   subdir('test')
     25 endif
     26 
     27 # Needed to be discoverable when installed.
     28 pkg_mod = import('pkgconfig')
     29 pkg_mod.generate(
     30   name: 'ODE Toolbox',
     31   filebase: 'ode_toolbox',
     32   description: 'ODE integrator toolbox for C++',
     33 )