1project('hash', 'cpp', 2 default_options: ['buildtype=debugoptimized', 3 'cpp_std=c++14', 4 'warning_level=1', 5 'werror=true', 6 'strip=true', 7 'b_sanitize=undefined', 8 'b_asneeded=false', 9 'b_lundef=false' 10 ]) 11 12CXXFLAGS = '' 13CXXFLAGS = CXXFLAGS.split(' ') 14 15LDFLAGS = '' 16LDFLAGS = LDFLAGS.split(' ') 17 18sources = files('main.cpp', 19 'test_blake1_224.cpp', 'test_blake1_256.cpp', 20 'test_blake1_384.cpp', 'test_blake1_512.cpp', 21 'test_blake2.cpp', 'test_blake2s.cpp', 22 'test_cshake.cpp', 23 'test_crc_32.cpp', 24 'test_has_160.cpp', 25 'test_md2.cpp', 'test_md4.cpp', 'test_md5.cpp', 26 'test_ripemd_128.cpp', 'test_ripemd_160.cpp', 27 'test_ripemd_256.cpp', 'test_ripemd_320.cpp', 28 'test_sha1.cpp', 29 'test_sha2_224.cpp', 'test_sha2_256.cpp', 30 'test_sha2_384.cpp', 'test_sha2_512.cpp', 31 'test_sha2_512_224.cpp', 'test_sha2_512_256.cpp', 32 'test_sha3.cpp', 'test_shake.cpp', 33 'test_sm3.cpp', 34 'test_tiger.cpp', 35 'test_tuple_hash.cpp', 36 'test_whirlpool.cpp' 37 ) 38 39exe = executable('run_tests', sources, 40 #cpp_args: CXXFLAGS, 41 #link_args: LDFLAGS 42 ) 43 44test('execute_test', exe) 45