1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
include_directories(../../third_party/googletest/googletest/include)
include_directories(../../src/wasm)
set(unittest_SOURCES
binary-reader.cpp
cfg.cpp
dfa_minimization.cpp
disjoint_sets.cpp
json.cpp
lattices.cpp
possible-contents.cpp
printing.cpp
scc.cpp
stringify.cpp
suffix_tree.cpp
topological-sort.cpp
type-builder.cpp
wat-lexer.cpp
validator.cpp
)
# suffix_tree.cpp includes LLVM header using std::iterator (deprecated in C++17)
if (NOT MSVC)
set_source_files_properties(suffix_tree.cpp PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations)
endif()
binaryen_add_executable(binaryen-unittests "${unittest_SOURCES}")
target_link_libraries(binaryen-unittests gtest gtest_main)
|