project('fg-engine', 'cpp', default_options: ['warning_level=3', 'cpp_std=none']) cpp = meson.get_compiler('cpp') if cpp.get_id() in ['msvc', 'clang-cl'] add_project_arguments('/std:c++latest', language: 'cpp') else add_project_arguments('-std=c++23', language: 'cpp') endif add_project_arguments('-DCATCH_CONFIG_FAST_COMPILE', language: 'cpp') sim_core = static_library('sim_core', sources: files('src/fixed_point.cpp'), include_directories: 'include', ) sim_core_dep = declare_dependency( link_with: sim_core, include_directories: 'include', ) catch2_dep = dependency('catch2-with-main') test_exe = executable('fg-tests', sources: files('tests/test_fixed_point.cpp'), dependencies: [sim_core_dep, catch2_dep], ) test('unit tests', test_exe)