1project( 2 'slpd-lite', 3 'cpp', 4 version: '0.1', 5 meson_version: '>=1.1.1', 6 default_options: [ 7 'warning_level=3', 8 'werror=true', 9 'cpp_std=c++23', 10 ], 11) 12 13libsystemd_dep = dependency('libsystemd') 14 15executable( 16 'slpd', 17 'main.cpp', 18 'slp_message_handler.cpp', 19 'slp_parser.cpp', 20 'slp_server.cpp', 21 'sock_channel.cpp', 22 dependencies: [ libsystemd_dep ], 23 install: true, 24 install_dir: get_option('sbindir'), 25) 26 27build_tests = get_option('tests') 28gtest = dependency('gtest', main: true, disabler: true, required: build_tests) 29gmock = dependency('gmock', disabler: true, required: build_tests) 30 test( 31 'test_slp_parser', 32 executable('test_slp_parser', 33 './test/slp_parser_test.cpp', 34 'slp_parser.cpp', 35 dependencies: [ 36 gtest, 37 ], 38 implicit_include_directories: true, 39 include_directories: '../' 40 ) 41 ) 42